GitHub

Item

A versatile component that you can use to display any content.

Basic Item

A simple item with title and description.

Your profile has been verified.

The Item component is a straightforward flex container that can house nearly any type of content. Use it to display a title, description, and actions. Group it with the ItemGroup component to create a list of items.

Installation

Usage

Item vs Field

Use <Field /> if you need to display a form input such as a checkbox, input, radio, or select.

If you only need to display content such as a title, description, and actions, use <Item />.

Variant

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

Outline

Outline Variant

Outlined style with a visible border.

Muted

Muted Variant

Muted background for secondary content.

Size

Use the size prop to change the size of the item.

Extra Small Size

Small Size

A compact size for dense layouts.

Small Size

Small Size

A compact size for dense layouts.

Examples

Icon

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

Security Alert

New login detected from unknown device.

Avatar

You can use <ItemMedia /> with variant="default" to display an avatar.

PV
Pasquale Vitiello

Last seen 5 months ago

No Team Members

Invite your team to collaborate on this project.

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

Main component for displaying content with media, title, description, and actions. Renders a div (or the child element when asChild is true).

ItemGroup

Container that groups related items with consistent spacing. Renders a div with role="list".

ItemSeparator

Separator between items in a group. Renders a horizontal separator.

ItemMedia

Displays media (icon, image, or custom content) for the item. Renders a div.

ItemContent

Wraps the title and description of the item. Renders a div.

ItemTitle

Displays the item title. Renders a div.

ItemDescription

Displays the item description. Renders a p.

ItemActions

Container for action buttons or other controls. Renders a div.

ItemHeader

Header above the item content (full-width row). Renders a div.

ItemFooter

Footer below the item content (full-width row). Renders a div.