TileGroup
Alpha component
A TileGroup groups Tiles to let users browse and take action on a group of related items.
Usage
Selected
A tile group can have an item initially selected, by using defaultSelectedKeys
for uncontrolled or selectedKeys
for controlled.
Here's an example where one item is selected using defaultSelectedKeys.
Controlled
A tile group can have a controlled selected value. In this example, it shows how it is possible to select an option.
Disabled
A tile group can be disabled.
Wrapping
Tiles are automatically wrapped
Number of columns
A tile group can have a number of columns. Default is 3. Here's an example where it's 4.
Props
TileGroup
The number of columns to display the tiles in.
Whether single or multiple selection is enabled.
Whether the collection allows empty selection.
The inline style for the element. A function may be provided to compute the style based on component state.
The orientation of the the toggle button group.
The currently selected keys in the collection (controlled).
The initial selected keys in the collection (uncontrolled).
Whether all items are disabled.
The children of the component. A function may be provided to alter the children based on component state.
The CSS className for the element. A function may be provided to compute the class based on component state.