UIIcons

Item

A flexible container for displaying content in a scannable row.

Title

Description

Upload successful
Item Examples

Installation

pnpm dlx stera-ui@latest add item

Composition

Compose Item using only the components you need, nested according to this hierarchy:

ItemGroup
└── Item
    ├── ItemHeader
    ├── ItemBody
    │   ├── ItemMedia
    │   ├── ItemContent
    │   │   ├── ItemTitle
    │   │   └── ItemDescription
    │   └── ItemActions
    └── ItemFooter

All Variants

Ghost variant

No border, transparent background.

Outline variant (Default)

Visible border, transparent background.

Subtle variant

Subtle muted background, no border.

All Variants
VariantDescription
outlineVisible border, transparent background (default)
subtleSubtle muted background, no border
ghostNo border, transparent background

All Sizes

Large size

Increased padding and spacing.

Medium size (Default)

Standard padding and spacing.

Small size

Reduced padding and spacing.

All Sizes
SizeDescription
smReduced padding and spacing
mdStandard padding and spacing (default)
lgIncreased padding and spacing

Examples

Icon

Use ItemMedia with variant="icon" to display an icon.

Security Alert

New login detected from unknown device.

Icon

Avatar

Display an Avatar within ItemMedia.

B
@hauntedjpeg

Last active 2 min ago

B
@hauntedjpeg

Last active 2 min ago

Avatar

Use ItemHeader to add a header above the item content.

Dev ServerRunning
http://localhost:3000

http://192.168.86.24:3000

Header

Use ItemFooter to add a footer below the item content.

http://localhost:3000

http://192.168.86.24:3000

Dev ServerRunning
Footer

API Reference

Item

PropTypeDefault
variant"outline" | "subtle" | "ghost""outline"
size"sm" | "md" | "lg""md"
renderReactElement

ItemMedia

PropTypeDefault
variant"default" | "icon" | "image""default"

Subcomponents

ComponentDescription
ItemBodyFlex row wrapper for media, content, and actions inside an Item
ItemContentFlex column container for title and description
ItemTitlePrimary label text
ItemDescriptionSecondary supporting text
ItemActionsRight-aligned slot for badges, buttons, or controls
ItemGroupWrapper for a list of items
ItemSeparatorHorizontal divider between items
ItemHeaderOptional header row for a group
ItemFooterOptional footer row for a group