Item
A versatile flex container for content with media, title, description, and actions. Group it to build lists.
Installation#
pnpm dlx shadcn@latest add @davinciui/itemUsage#
Item only displays content. If you need a form input such as a checkbox, input, radio, or select, use Field instead.
ItemGroup
└── Item
├── ItemHeader
├── ItemMedia
├── ItemContent
│ ├── ItemTitle
│ └── ItemDescription
├── ItemActions
└── ItemFooterComposition#
Use the following composition to build a Item:
ItemGroup
└── Item
├── ItemHeader
├── ItemMedia
├── ItemContent
│ ├── ItemTitle
│ └── ItemDescription
├── ItemActions
└── ItemFooterAPI Reference#
| Prop | Type | Default |
|---|---|---|
variantVisual style of the item. | "default" | "outline" | "muted" | "default" |
sizeDensity of the item. | "default" | "sm" | "xs" | "default" |
renderRender the item as a link or custom element. | ReactElement | — |
variant (media)Media treatment (ItemMedia). | "default" | "icon" | "image" | "default" |
classNameAdditional classes on any part. | string | — |
Accessibility#
Item is a presentational flex container of divs with no roles; the optional render prop can turn it into an anchor or custom element with native semantics. Interactive controls in ItemActions keep their own keyboard behavior; title and description are not associated semantically.
Motion#
There is no meaningful motion. Only a CSS transition-colors hover treatment on links and variants changes; no timing or easing props or reduced-motion checks are present because nothing moves.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

