A versatile component for displaying content with media, title, description, and actions.
A simple item with title and description.
The Item component is a straightforward flex container that can house nearly any type of content. Use it to display a title, description, and actions. Group it with the ItemGroup component to create a list of items.
Installation
Usage
<Item>
<ItemMedia Variant="ItemMediaVariant.Icon">
<Icon Data="LucideIcons.Inbox" />
</ItemMedia>
<ItemContent>
<ItemTitle>Title</ItemTitle>
<ItemDescription>Description</ItemDescription>
</ItemContent>
<ItemActions>
<Button>Action</Button>
</ItemActions>
</Item>Composition
Use the following composition to build an Item:
ItemGroup
└── Item
├── ItemHeader
├── ItemMedia
├── ItemContent
│ ├── ItemTitle
│ └── ItemDescription
├── ItemActions
└── ItemFooterItem vs Field
Use Field if you need to display a form input such as a checkbox, input, radio, or select.
If you only need to display content such as a title, description, and actions, use Item.
Variant
Use the Variant parameter to change the visual style of the item.
Transparent background with no border.
Outlined style with a visible border.
Muted background for secondary content.
Size
Use the Size parameter to change the size of the item. Available sizes are default, sm, and xs.
The standard size for most use cases.
A compact size for dense layouts.
Icon
Use ItemMedia with variant="icon" to display an icon.
New login detected from unknown device.
Avatar
You can use ItemMedia with variant="avatar" to display an avatar.
Last seen 5 months ago
Invite your team to collaborate on this project.
Image
Use ItemMedia with variant="image" to display an image.
Group
Use ItemGroup to group related items together.
blazix@example.com
maxleiter@vercel.com
evilrabbit@vercel.com
Header
Use ItemHeader to add a header above the item content.
Everyday tasks and UI generation.
Advanced thinking or reasoning.
Open Source model for everyone.
Link
Use the Render parameter to render the item as a link. The hover and focus states will be applied to the anchor element.
<Item>
<Render>
<a @attributes="context.Attributes" href="/dashboard">
<ItemMedia Variant="ItemMediaVariant.Icon"><Icon Data="LucideIcons.Home" /></ItemMedia>
<ItemContent>
<ItemTitle>Dashboard</ItemTitle>
<ItemDescription>Overview of your account and activity.</ItemDescription>
</ItemContent>
</a>
</Render>
</Item>Dropdown
RTL
To enable RTL support in Blazix, see the RTL configuration guide.
Translated with AI for the demo, so it may have mistakes.
عنصر بسيط يحتوي على عنوان ووصف.
API Reference
Item
Other attributes are passed to the element it renders.
ItemActions
Other attributes are passed to the element it renders.
ItemContent
Other attributes are passed to the element it renders.
ItemDescription
Other attributes are passed to the element it renders.
ItemFooter
Other attributes are passed to the element it renders.
ItemGroup
Other attributes are passed to the element it renders.
ItemHeader
Other attributes are passed to the element it renders.
ItemMedia
Other attributes are passed to the element it renders.
ItemSeparator
Other attributes are passed to the element it renders.
ItemTitle
Other attributes are passed to the element it renders.