Skip to content
Playground

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.

Workspace protection is active

Security scans run automatically before every release.

TSX
import { Item } from "@zentara-co/zenos-ui";

Build an Item from only the parts the content needs.

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

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.

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.

Default item

A reusable content row using the default surface.

Outline item

A reusable content row using the outline surface.

Muted item

A reusable content row using the muted surface.

White item

A reusable content row using the white surface.

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.

SM item

Spacing and media scale follow the item size.

MD item

Spacing and media scale follow the item size.

LG item

Spacing and media scale follow the item size.

Use Item.Group to collect related rows and Item.Separator when a visible boundary helps users scan the group.

Compose the root onto an anchor with render. The entire row then receives the hover and focus-visible treatment.

TSX
<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

PropTypeDefaultDescription
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-*.

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