Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsCoverShelfItem[]DEFAULT_ITEMSThe things on the shelf, in order.
groupsCoverShelfGroup[]NoneAdds a row of tabs above the shelf, with an All tab first.
groupstringNoneThe open tab's id (`all` for All), when you hold the state.
defaultGroupstringNoneThe tab open at first, when the shelf holds the state.
onGroupChange(id: string) => voidNoneCalled with the id of the tab the user opens.
onSelect(item: CoverShelfItem) => voidNoneCalled with the item the user picks.
detailbooleantrueOpens a dialog with the cover and the details when a spine is picked.
selectedstring | nullNoneThe id of the picked item, or null for none, when you hold the state.
onSelectedChange(id: string | null) => voidNoneCalled with the id of the picked item, or null when the detail closes.
actions(item: CoverShelfItem) => ReactNodeNoneReturns the buttons at the bottom of the detail.
rowHeightnumber232Height in pixels of one row, including its plank.
loadingbooleanfalseShows skeleton spines.
emptyReactNode"Nothing on this shelf."Shown when no item matches the open tab.
legendbooleanfalseExplains the ribbon and the dot below the shelf.
markedLabelstring"Marked"The legend's name for a marked spine.
activeLabelstring"Active"The legend's name for an active spine.
ariaLabelstring"Shelf"Name for the shelf, read by screen readers.
classNamestringNone

Related