Marigold
Getting StartedFoundationsComponentsPatternsRecipesReleases
Discover new Tutorials!

Components

Overview

Application

MarigoldProvider
updated
RouterProvider
updated

Layout

Aside
Aspect
Breakout
Center
Columns
Container
Grid
Inline
Inset
Scrollable
Split
Stack
updated
Tiles

Form

Autocomplete
Button
updated
Calendar
Checkbox
ComboBox
DateField
DatePicker
Form
Multiselect
new
NumberField
Radio
SearchField
Select
Slider
Switch
TextArea
TextField
TimeField
new

Collection

SelectList
updated
Table
updated
Tag

Navigation

Accordion
Breadcrumbs
beta
Pagination
Tabs

Overlay

ContextualHelp
new
Dialog
Menu
Toast
beta
Tooltip
updated

Content

Badge
Body
Card
Divider
updated
Footer
Header
Headline
updated
Icon
updated
Image
Link
updated
List
updated
SectionMessage
SVG
updated
Text
updated
VisuallyHidden
updated
XLoader

Formatters

DateFormat
NumericFormat

Hooks and Utils

cn
cva
extendTheme
useAsyncListData
useListData
useResponsiveValue
useTheme

Tiles

Organize the content in tiles of equal width.

The <Tiles> is a layout component which is based on CSS grid system.

Usage

<Tiles> serves as a versatile container, ideal for constructing panels, cards, lists, and other content components that organize and group information. They automatically wraps children to a new line if the space given is not enough to show the <Tiles> in one row.

It's possible to display the items with some spacing through space prop or set a minimum width for all items inside <Tiles> with tilesWidth prop.

Preview
Code
Belly Laugh Ballroom

Belly Laugh Ballroom

A grand ballroom where laughter echoes from every corner—guaranteed to make your belly ache from giggling.
Snicker Sanctuary

Snicker Sanctuary

A comfortable theater where all snickers, chuckles, and guffaws are welcome. Come find your happy place.
The Jester's Junction

The Jester's Junction

A vibrant community center with fun-loving vibes and plenty of laughter—where every visitor is treated like royalty!
Punning Pavilion

Punning Pavilion

An open pavilion designed for wordplay wizards and pun enthusiasts—come enjoy a night of laughter that hits all the right notes.
Guffaw Gardens

Guffaw Gardens

A beautiful garden that blooms with laughter—ideal for large gatherings filled with smiles and fresh air.

Equal heights

If you need to have the items in the <Tiles> take the same height, you can use the equalHeight property, which is a boolean value that can be used to size the items of the <Tiles>. In this case, all items adopt the size of the largest card, making it essential when you want all items to match the largest child’s dimensions.

Preview
Code

Stretch width

Using the stretch property will make the tiles fully responsive. Meaning, they will distribute available width between them while not getting smaller then the given tilesWidth.

Preview
Code

Props

Did you know? You can explore, test, and customize props live in Marigold's storybook. Watch the effects they have in real-time!
View Tiles stories
aria-describedby?
string;
Identifies the element (or elements) that describes the object.
aria-details?
string;
Identifies the element (or elements) that provide a detailed, extended description for the object.
aria-label?
string;
Defines a string value that labels the current element.
aria-labelledby?
string;
Identifies the element (or elements) that labels the current element.
aria-live?
"off" | "polite" | "assertive";
Indicates the level of importance for updates in the live region.
  • 'off': Updates are not announced unless focused.
  • 'polite': Updates are announced when the user is idle.
  • 'assertive': Updates are announced immediately, interrupting other announcements.
children
ReactNode;
The children of the component.
equalHeight?
boolean;
If true, all items will have the height of the biggest item.
Defaults to:
"false"
id?
string;
The element's unique identifier. See MDN.
role?
"region" | (string & {});
Identifies the element a significant section of content for easier navigation. When region is used as a role, an aria-label or aria-labelledby must be provided. See MDN.
space?
GapSpaceProp;
The space between the children. You can see allowed tokens here.
Defaults to:
0
stretch?
boolean;
Tiles will stretch to available width and will distribute their width equally. Note that this can make them wider than the specified tiles width, but not smaller than the given "tilesWidth". Basically, this is full responsive mode.
Defaults to:
"false"
tilesWidth?
string;
Set minimum width for all items inside.
Defaults to:
250px

Alternative components

  • Columns: It should be noted that <Tiles> is used for children with the same width. If you want to set different widths for the children use <Columns> instead.

  • Grid: If you need more custom controll over the layout, you should use <Grid> component instead.

Related

Building layouts
Learn how to build layouts.
Last update: 3 months ago
Build with 🥵, 🧡 and
v14.1.1