Item
A composable content row for media, titles, descriptions, metadata, and actions.
Item presents a compact piece of content with optional media and actions. Use it for settings rows, resource summaries, navigation destinations, and other content that is smaller than a Card but does not have form-control semantics.
Import
Section titled “Import”import { Item } from "@zentara-co/zenos-ui";Composition
Section titled “Composition”Build an Item from only the parts the content needs.
<Item> <Item.Header>Account</Item.Header> <Item.Media variant="icon">...</Item.Media> <Item.Content> <Item.Title>Profile verified</Item.Title> <Item.Description>Your identity check is complete.</Item.Description> </Item.Content> <Item.Actions>...</Item.Actions> <Item.Footer>Updated today</Item.Footer></Item>Item.Header and Item.Footer occupy full rows. Media, content, and actions share the middle row,
and long titles or descriptions shrink without pushing actions outside the container.
Item or Field
Section titled “Item or Field”Use Field when the composition contains an input, checkbox, radio, select, or validation message. Use Item for descriptive content and related actions. Item does not provide a label relationship, validation state, or form semantics.
Variants
Section titled “Variants”default stays transparent, outline creates a bounded surface, and muted gives secondary
content a quiet background. white adds a bordered surface using background-default: white in light mode and dark in dark mode. Text and icons follow the active theme. White links and buttons retain hover, pressed, and keyboard-focus feedback.
White items support the same render composition as other variants:
Use sm, md, or lg to coordinate the row spacing and icon or image scale. The default is md.
Groups and separators
Section titled “Groups and separators”Use Item.Group to collect related rows and Item.Separator when a visible boundary helps users
scan the group.
Links and actions
Section titled “Links and actions”Compose the root onto an anchor with render. The entire row then receives the hover and
focus-visible treatment.
<Item render={<a href="/settings" />}> <Item.Content> <Item.Title>Settings</Item.Title> <Item.Description>Manage workspace preferences.</Item.Description> </Item.Content></Item>Do not put buttons or other interactive controls inside an Item rendered as a link. For a row with
Item.Actions, keep the root non-interactive and give each action its own accessible control.
Use variant="icon" for a framed glyph and variant="image" for a cropped image. The default media
slot leaves its child styling untouched, which makes it suitable for Avatar, Badge, or custom media.
Item uses logical spacing and alignment. Actions move to the logical end, and directional icons can
use rtl:rotate-180 when their meaning should mirror.
Variants
defaultoutlinemutedwhite Sizes
smmdlg Item.Root Item.Group Item.Separator Item.Header Item.Media Item.Content Item.Title Item.Description Item.Actions Item.Footer
API
| Prop | Type | Default | Description |
|---|---|---|---|
variant | default | outline | muted | white | default | Transparent, bordered, quiet, or white surface treatment. White adapts to a dark surface in dark mode. |
size | sm | md | lg | md | Coordinates row spacing and icon or image scale. |
render | ReactElement | ((props, state) => ReactElement) | — | Composes Item props onto another element, such as an anchor. |
Media.variant | default | icon | image | default | Unstyled media, framed icon, or cropped image presentation. |
Group / Header / Content / Title / Description / Actions / Footer | native element props | — | Composable slots with forwarded refs, classes, and native attributes. |
Separator | HTMLAttributes<HTMLDivElement> | — | Horizontal separator with separator semantics. |
native props | React.HTMLAttributes<HTMLDivElement> | — | Forwards native attributes, events, aria-*, data-*, className, style, and ref. |
Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props,
including className, style, aria-*, and data-*.
Accessibility
Section titled “Accessibility”- Choose meaningful native semantics through
render, such as an anchor for navigation. - Give icon-only actions an accessible name.
- Do not rely on the variant or media color to communicate status.
- Keep heading hierarchy outside Item unless a title genuinely introduces a document section.
- Item Group is presentational by default; apply list semantics only when the surrounding content is truly a list.
The component is adapted to Zenos conventions from the shadcn Item pattern.