Item
A flex row for media, title, description, and actions. Use Item for content lists; use Field when the row wraps a form control.
Basic
Title, description, and optional actions in a flex row.
Installation
CLI
Also needs
npx @sonojs/ui@latest add separatorComposition
structure
Usage
item.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" · "outline" · "muted" | "default" | Surface style on `Item`. |
| size | "default" · "sm" | "default" | Padding and gap density on `Item`. |
| asChild | boolean | false | Merge props onto the child (e.g. an `<a>`) via Radix Slot. |
| variant (media) | "default" · "icon" · "image" | "default" | On `ItemMedia` — icon frame or image crop. |
| className | string | — | Merge extra Tailwind classes on any part. |