Item
A flexible, composable component for building list items with media, content, and actions.
Basic Item
A simple item with title, description, and an action button.
Notification List
Items displaying notifications with icons, titles, descriptions, and timestamps.
Settings Items
Clickable settings rows with icons and descriptions using AsChild to render as links.
User Profile Cards
User items with avatars, names, roles, and action buttons.
Variants
Three visual variants: Default, Outline, and Muted.
Sizes
Two size options: Default and Small.
Polymorphic Rendering (AsChild)
Items can render as different HTML elements using the AsChild parameter.
Complex Layout
Using ItemHeader and ItemFooter for advanced layouts.
API Reference
Item component parameters and their types.
| Prop | Type | Default | Description |
|---|---|---|---|
| Variant | ItemVariant | Default | Visual style: Default, Outline, Muted. |
| Size | ItemSize | Default | Size: Default, Sm. |
| AsChild | string? | null | Renders the item as the given HTML element (e.g. "a", "button"). |
| Href | string? | null | URL for link rendering (when AsChild="a"). |
| Class | string? | null | Additional CSS classes. |
Sub-component API
Parameters for ItemContent, ItemMedia, ItemActions, ItemHeader, and ItemFooter.
| Prop | Type | Default | Description |
|---|---|---|---|
| ItemContent — Class | string? | null | Additional CSS classes. |
| ItemMedia — Variant | ItemMediaVariant | Default | Visual style for the media area: Default, Icon, Image. |
| ItemMedia — Class | string? | null | Additional CSS classes. |
| ItemActions — Class | string? | null | Additional CSS classes. |
| ItemHeader — Class | string? | null | Additional CSS classes. |
| ItemFooter — Class | string? | null | Additional CSS classes. |