Draft. Ported from the shadcn-vue Item and restyled with Beehexa tokens. Not yet approved; the API may still change.
An item is one entry in a list: optional media, a title, a description and actions, in one row.
When to use
- A short list of things with an action each: connections, team members, integrations to install.
- A settings row: a name and description with a switch or button at the end.
- A link to a detail page that needs more than a line of text, with
as-childand an<a>.
When not to use
- Rows people compare by column. Use a Table.
- A block with several sections and a footer. Use a Card.
- Options in a menu. Use the menu’s own items (Dropdown menu).
Parts
| Part | Holds |
|---|---|
ItemMedia |
An icon (variant="icon"), an image (variant="image") or an avatar |
ItemContent |
ItemTitle and ItemDescription |
ItemActions |
Buttons at the end |
ItemHeader, ItemFooter |
A full-width line above or below |
ItemGroup |
The list (role="list"); give each Item role="listitem" |
ItemSeparator |
A line between items |
Variants and sizes
| Variant | Looks | Use |
|---|---|---|
default |
No edge | Items in a panel that already has one |
outline |
color.border edge |
Items on the page |
muted |
color.surface.subtle fill |
A quieter group, such as suggestions |
Sizes default and sm have 12 px padding; xs has 8 px. Image media follows the avatar steps: 40, 32 and 24 px.
Content
- Title: the name of the thing, one line.
- Description: one or two lines; longer text is cut after two lines, so put nothing there people must read in full.
- Status: a Badge in the title.
- Actions: one or two buttons,
size="sm". More go in a menu.
Tokens
| Part | Tokens |
|---|---|
| Item | radius.card; space.150 padding, space.100 between parts (xs: space.100) |
| Edge and fill | color.border (outline), color.surface.subtle (muted) |
| Link hover | color.background.neutral.subtle.hover, pressed .pressed (rows, D13) |
| Focus | border.width.focused, color.border.focus, state.focus.offset |
| Title | font.heading.xsmall, color.text |
| Description | font.body.default, color.text.subtle |
| Media | size.icon.default in color.icon.subtle; images size.control.large, .default, .small with radius.control.small |
| Group | space.200 between items (space.150 small, space.100 extra small) |