Item
List row with media, title, description and actions.
Installation
import { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle } from "@xerobi/ui/item"This component is client-side. In Astro, hydrate it with a client directive.
Variants
| variant | default, icon, image |
| size | default, sm, xs |
API reference
Item
| Prop | Type | Description |
|---|---|---|
| variant | "default" | "outline" | "muted" | |
| size | "default" | "xs" | "sm" |
ItemActions
Also accepts every prop of <div> element.
No props of its own.
ItemContent
Also accepts every prop of <div> element.
No props of its own.
ItemDescription
Also accepts every prop of <p> element.
No props of its own.
ItemFooter
Also accepts every prop of <div> element.
No props of its own.
ItemGroup
Also accepts every prop of <div> element.
No props of its own.
ItemHeader
Also accepts every prop of <div> element.
No props of its own.
ItemMedia
Also accepts every prop of <div> element.
| Prop | Type | Description |
|---|---|---|
| variant | "image" | "default" | "icon" |
ItemSeparator
No props of its own.
ItemTitle
Also accepts every prop of <div> element.
No props of its own.
Styling hooks: [data-slot="item-group"], [data-slot="item-separator"], [data-slot="item-media"], [data-slot="item-content"], [data-slot="item-title"], [data-slot="item-description"], [data-slot="item-actions"], [data-slot="item-header"], [data-slot="item-footer"].