Skip to content
GitHub

Item

A versatile component for displaying any content.

Basic Item

A simple item with title and description.

Your profile has been verified.

Installation

Usage

Variant

Use the variant prop to change the visual style of the item.

Default

Default Variant

Transparent background with no border.

Outline

Outline Variant

Outlined style with a visible border.

Muted

Muted Variant

Muted background for secondary content.

Custom spacing

The [--space:--spacing("value")] utility class controls the item padding and gap.

Compact spacing

Uses `[--space:--spacing(2)]` for tighter padding and gap.

Responsive spacing

Wider from `md` up with `md:[--space:--spacing(5)]`.

Breakpoint utilities change the spacing at different screen sizes.

Examples

Icon

Use <ItemMedia /> with variant="icon" to display an icon.

Security Alert

New login detected from unknown device.

Avatar

<ItemMedia /> with variant="default" displays an avatar.

PV
Pasquale Vitiello

Last seen 5 months ago

Image

Use <ItemMedia /> with variant="image" to display an image.

Midnight City Lights
Midnight City Lights

Electric Nights · Neon Dreams · 3:45

Coffee Shop Conversations
Coffee Shop Conversations

Urban Stories · The Morning Brew · 4:05

Digital Rain
Digital Rain

Binary Beats · Cyber Symphony · 3:30

Group

Use <ItemGroup /> to group related items together.

v
vinihvc

vinihvc@example.com

s
segunadebayo

segunadebayo@example.com

p
pasqualevitiello

pasqualevitiello@example.com

Use <ItemHeader /> to add a header above the item content.

v0-1.5-sm
v0-1.5-sm

Everyday tasks and UI generation.

v0-1.5-lg
v0-1.5-lg

Advanced thinking or reasoning.

v0-2.0-mini
v0-2.0-mini

Open Source model for everyone.

Use the asChild prop to render the item as a link. The hover and focus states will be applied to the anchor element.

Use <Item /> inside a menu or dropdown to display rich content in menu items.

API Reference

Item

Layout for list items with media, title, description, and actions. Use [--space:--spacing("value")] via className to control padding and gap. Supports asChild.

ItemGroup

Groups related items with consistent spacing. Uses a fixed gap; adjust layout with className if needed. Has role="list" for accessibility.

ItemSeparator

Horizontal divider between items in a group.

ItemMedia

Avatar, icon, or image for the item. Supports icon and image variants.

ItemContent

Wraps the item title and description text.

ItemTitle

Primary title or heading for the item.

ItemDescription

Secondary description or subtitle for the item.

ItemActions

Holds action buttons or controls (e.g. menu, buttons).

ItemHeader

Full-width header row above the item content.

ItemFooter

Full-width footer row below the item content.