Display
Item & list
Rows with media, text and actions.
Settings list
A row is media, text, then actions. ItemGroup stacks rows with hairline dividers and, with variant="outline", wraps them in one bordered container.
Weekly summary and billing receipts to amina@northwind.example.
Authenticator app, set up on 3 March 2026.
Owner of Northwind Finance. Joined in 2024.
Removes all projects, members and invoices. This cannot be undone.
When to use
- Lists of things with a title and a line of detail: settings, files, people, search results.
- Rows that carry their own controls (a switch, a button, a menu).
Not for tabular data with sortable columns (use a table) or for navigation menus (use a menu or sidebar).
Variants and sizes
default has no container, outline a border, muted a filled well. Sizes sm, md and lg change padding and text.
No container; sits on whatever surface holds it.
A 1px border, for rows that stand alone.
A quiet filled well for secondary information.
More padding and a larger title for primary lists.
As links
asChild renders your link (here a Next.js Link) with the row’s styles. Links and buttons get a hover fill and a focus ring; a plain row stays static.
API
Item
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'outline' | 'muted' | 'default' | No container, a border, or a filled well. |
| size | 'sm' | 'md' | 'lg' | 'md' | Padding and text size. |
| asChild | boolean | false | Render the child (a link or button) with the row styles. |
ItemMedia
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'icon' | 'image' | 'default' | As is (an Avatar), an Icon in a soft tile, or a rounded thumbnail. |
ItemGroup
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'outline' | 'muted' | 'default' | Draw the whole group as one container. |
| divided | boolean | true | Hairlines between rows. |
ItemContent holds ItemTitle and ItemDescription (truncated to two lines); ItemMeta is quiet trailing text; ItemActions holds controls. All forward ref and className and are Server Component–safe.
Accessibility
- ItemGroup is role="list"; it wraps each child in a role="listitem" cell, so a link row (asChild) keeps its own link role.
- Give a group an aria-label when its purpose is not clear from the heading above it.
- Rows with several controls: give each control its own accessible name (aria-label on a switch, specific button text).
- Do not nest interactive controls inside a row that is itself a link.
Motion
- Hover fill and focus ring change colour only, in 150ms, on fine pointers.
- Reduced motion: unchanged (nothing moves).