Skip to content
caliper ui docs

Pro

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.

Pro
pnpm dlx shadcn@latest add @caliper/item
Workspace settings

Forma Studio · Team plan · 14 members

Northwind vendor agreement, signed copy with every amendment and annex, 2026.pdf
Uploaded by Tomas Ferreira · 2.4 MB
Installs components/ui/item.tsxDepends on @radix-ui/react-slotMotion none in component source

When to use

Use it for

  • Settings lists, search results, files and people.
  • The row inside a menu or a panel.

Skip it when

  • 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.

Decisions

Why it is built this way, so you know what to keep when you change your copy.

Behaviour

Long text is cut, the action stays
Title and description truncate to one line so the action never moves.

Styling

The table's row, in black and white
Padding and hover match the data table. The selected row is a neutral fill with a 2px ink edge, so a list never turns orange or brown.

Usage

A row that goes somewhere is one link
Use asChild with a link. A link and a button in the same row give two tab stops for one idea.

Installation

terminal
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.

Usage

Import it from your copy of the source. The example behind the preview comes with the source. It is built from Item, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemMeta and ItemTitle.

example.tsx
import { Item, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemMeta, ItemTitle } from "@/components/ui/item"

The worked example comes with Pro

The 78-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

Item

component

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
asChildboolean—Render the row as its child, such as a link: `<Item asChild><a href="…">…</a></Item>`.
currentboolean—The row for the current page or selection.
disabledboolean—

ItemContent

component

No props of its own; it accepts the native props of its root element.

ItemDescription

component

No props of its own; it accepts the native props of its root element.

ItemGroup

component

Also accepts the native props of its root element and a ref.

PropTypeDefault
separateboolean—

ItemMedia

component

Also accepts the native props of its root element and a ref.

PropTypeDefault
roundboolean—

ItemMeta

component

No props of its own; it accepts the native props of its root element.

ItemTitle

component

No props of its own; it accepts the native props of its root element.

Accessibility

It exposes list semantics, with aria-current and aria-disabled kept in step with state.

No custom key handling; Tab and the native activation keys do the work.

Motion

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.

All Dock & lists examples