Tile Grid
A collection as cards. Tiles enter in a stagger, glide when the order changes and fade away when removed. Images fade in from a soft blur, tiles can be selected with a corner check and a Shift range, and arrow keys move between tiles in two dimensions.
pixikit.com/docs/app-ui/lists/tile-grid
Customize
Layout
Min tile width240px
Gap16px
Surface
Selectable
Sort by
Loading
Props
16| Name | Type | Default | Description |
|---|---|---|---|
items | TileItem[] | Required | The tiles, in order. |
onAction | (itemId: string, actionId: string) => void | None | Called when a menu entry or footer button is picked. |
onSelect | (itemId: string) => void | None | Called when a tile is clicked. |
layout | "vertical" | "horizontal" | "vertical" | Media above the text, or beside it. |
minTileWidth | number | 240 | The least width of a tile in px; columns fill the container. |
gap | number | 16 | Space between tiles in px. |
surface | "cards" | "joined" | "cards" | `cards` gives each tile its own card, `joined` one bordered grid with shared dividers. |
selectable | boolean | false | Shows a check in each tile's corner; Shift click selects a range. |
selected | string[] | None | The selected ids, when you hold them. |
defaultSelected | string[] | None | The selected ids to start with. |
onSelectedChange | (selected: string[]) => void | None | Called with the selected ids. |
sortBy | "title" | "none" | "none" | `title` sorts the tiles A to Z. |
loading | boolean | false | Shows tiles shaped like the real ones. |
empty | ReactNode | None | Shown when there are no tiles. |
ariaLabel | string | "Collection" | Name for the grid, read by screen readers. |
className | string | None |