Cover Shelf
A shelf of spines for any collection: books, files, templates or releases. Spines stand in wrapping rows on planks, lift to show their cover, filter by group with a slide, and open a detail dialog.
pixikit.com/docs/app-ui/lists/cover-shelf
Customize
Detail
Row height232px
Loading
Legend
Props
18| Name | Type | Default | Description |
|---|---|---|---|
items | CoverShelfItem[] | DEFAULT_ITEMS | The things on the shelf, in order. |
groups | CoverShelfGroup[] | None | Adds a row of tabs above the shelf, with an All tab first. |
group | string | None | The open tab's id (`all` for All), when you hold the state. |
defaultGroup | string | None | The tab open at first, when the shelf holds the state. |
onGroupChange | (id: string) => void | None | Called with the id of the tab the user opens. |
onSelect | (item: CoverShelfItem) => void | None | Called with the item the user picks. |
detail | boolean | true | Opens a dialog with the cover and the details when a spine is picked. |
selected | string | null | None | The id of the picked item, or null for none, when you hold the state. |
onSelectedChange | (id: string | null) => void | None | Called with the id of the picked item, or null when the detail closes. |
actions | (item: CoverShelfItem) => ReactNode | None | Returns the buttons at the bottom of the detail. |
rowHeight | number | 232 | Height in pixels of one row, including its plank. |
loading | boolean | false | Shows skeleton spines. |
empty | ReactNode | "Nothing on this shelf." | Shown when no item matches the open tab. |
legend | boolean | false | Explains the ribbon and the dot below the shelf. |
markedLabel | string | "Marked" | The legend's name for a marked spine. |
activeLabel | string | "Active" | The legend's name for an active spine. |
ariaLabel | string | "Shelf" | Name for the shelf, read by screen readers. |
className | string | None |