Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsTileItem[]RequiredThe tiles, in order.
onAction(itemId: string, actionId: string) => voidNoneCalled when a menu entry or footer button is picked.
onSelect(itemId: string) => voidNoneCalled when a tile is clicked.
layout"vertical" | "horizontal""vertical"Media above the text, or beside it.
minTileWidthnumber240The least width of a tile in px; columns fill the container.
gapnumber16Space between tiles in px.
surface"cards" | "joined""cards"`cards` gives each tile its own card, `joined` one bordered grid with shared dividers.
selectablebooleanfalseShows a check in each tile's corner; Shift click selects a range.
selectedstring[]NoneThe selected ids, when you hold them.
defaultSelectedstring[]NoneThe selected ids to start with.
onSelectedChange(selected: string[]) => voidNoneCalled with the selected ids.
sortBy"title" | "none""none"`title` sorts the tiles A to Z.
loadingbooleanfalseShows tiles shaped like the real ones.
emptyReactNodeNoneShown when there are no tiles.
ariaLabelstring"Collection"Name for the grid, read by screen readers.
classNamestringNone

More lists blocks in Pro

View all

Related