Item

Data display

A row of a list: <Item.Root> (variant: default, outline, muted; size: default, sm) holds an Item.Media (an icon in a tile with variant="icon", a cropped image with variant="image"), an Item.Content with an Item.Title and an Item.Description, and Item.Actions. Item.Group makes a list of items (each one a list item), with Item.Separators between them. A row that opens something: in a group, put the link in its Item.Title, so the row stays a list item; a single row can be the link itself, with the root's child snippet.

import { Item } from '@limerdev/zest';
Item for AI tools (llms.txt)
Use for
A list of people, files, integrations or notifications, each with a short description and an action; a settings row with a Switch.
Don't
Records compared across columns: use Table. A choice from a list: use RadioGroup or Select. A navigation menu: use Sidebar or NavigationMenu.

Examples

Basic

A row: media, a title and description, and an action.

Invoice 1042

List

Item.Group is a list; Item.Separator divides it. A link goes in the Item.Title, so each row stays a list item.

AB
Owner
EL
Member
SE
Member

Settings

variant="muted" on a settings row, with a Switch labelled by the title.

Payment reminders

Props

Every part also takes class (merged over its defaults), ref (bindable: the element), children, and child (a snippet that renders your own element, with props to spread on it).

Item.Root

Prop Type Default Description
size "default" | "sm" 'default' The padding: sm for dense lists.
variant "outline" | "default" | "muted" 'default' The look: default is plain, outline draws a border, muted fills it with the theme's surface.

Item.Group

No props of its own beyond the common ones.

Item.Separator

Prop Type Default Description
decorative boolean true Whether the separator is decorative and should be hidden from assistive technologies.
orientation "horizontal" | "vertical" "horizontal" The orientation of the separator.

Item.Media

Prop Type Default Description
variant "default" | "icon" | "image" 'default' icon sets an icon in a small tile, image crops an image to a square; default shows the children as they are.

Item.Content

No props of its own beyond the common ones.

Item.Title

No props of its own beyond the common ones.

Item.Description

No props of its own beyond the common ones.

Item.Actions

No props of its own beyond the common ones.