Skip to content

Item

List row with media, title, description and actions.

Installation

bun add @xerobi/ui
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

variantdefault, icon, image
sizedefault, sm, xs

API reference

Item

PropTypeDescription
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.

PropTypeDescription
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"].

Search documentation

Search pages, components and blocks.