UIComponentsReact
A row of media, text and actions, for lists of things.
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/item.jsonIt also adds utils, separator. The app needs its setup first: Installation.
Usage
Compose ItemMedia, ItemContent (with ItemTitle and ItemDescription) and ItemActions; ItemGroup stacks items and ItemSeparator divides them. variant and size set its frame and spacing.
import {
Item,
ItemMedia,
ItemContent,
ItemActions,
ItemGroup,
ItemSeparator,
ItemTitle,
ItemDescription,
ItemHeader,
ItemFooter,
} from '@/components/ui/item'Examples
Default
A row with a title, a description and an action.
API reference
Item wraps no headless component of its own: its parts are elements with classes, and their props are the element's.