Skip to content

Item

A versatile component for displaying any content, combining elements like title, description, media, and actions.

Basic Item
A simple item with title and description.
Your profile has been verified.
Terminal window
bunx bejamas add item
---
import Item from '@/components/ui/Item.astro';
---
<Item variant="outline">
<Item part="header">
<Item part="title">Basic Item</Item>
<Item part="description">A simple item with title and description.</Item>
</Item>
<Item part="media">
<BadgeCheckIcon class="size-5" />
</Item>
<Item part="content">
Content
</Item>
<Item part="actions">
Actions
</Item>
<Item part="footer">Item Footer</Item>
</Item>

Use <Item part="separator" /> to separate items.

Item title
Short description for the item.
Item title
Short description for the item.
Default Variant
Standard styling with subtle background and borders.
Outline Variant
Outlined style with clear borders and transparent background.
Muted Variant
Subdued appearance with muted colors for secondary content.
Security Alert
New login detected from unknown device.
v0-1.5-sm
v0-1.5-sm
Everyday tasks and UI generation.

To render an item as a link, use the as prop. The hover and focus states will be applied to the anchor element.

Built at Bejamas