Item
A generic row: media, title, description, meta and an action. It uses the data table's row spacing and its hover and selected fills.
When to use
- Settings lists, search results, files and people.
- The row inside a menu or a panel.
When not to use
- Tabular data with columns to compare; use the data table.
- A row with a link and a button side by side; make the row the link.
Installation
pnpm dlx shadcn@latest add @caliper/item
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
Item
3 props
Also accepts the native props of its root element and a ref.
ItemContent
0 props
No props of its own; it accepts the native props of its root element.
ItemDescription
0 props
No props of its own; it accepts the native props of its root element.
ItemGroup
1 prop
Also accepts the native props of its root element and a ref.
ItemMedia
1 prop
Also accepts the native props of its root element and a ref.
ItemMeta
0 props
No props of its own; it accepts the native props of its root element.
ItemTitle
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes list and listitem semantics.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/item.mdThe index of every part is at /llms.txt.