Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Item

A row of media, text and actions, for lists of things.

Rendered by React 19.3.1

item.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/item.json

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

Its preview and code are at the top of the page.

API reference

Item wraps no headless component of its own: its parts are elements with classes, and their props are the element's.