# Item (@limerdev/zest) A row of a list: `` (`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.Separator`s 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. - Category: Data display - Import: `import { Item } from '@limerdev/zest'` - Exports: `Item.Root`, `Item.Group`, `Item.Separator`, `Item.Media`, `Item.Content`, `Item.Title`, `Item.Description`, `Item.Actions` - 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`. ```svelte Invoice 1042 Nordlys AB, due 30 December. ``` Props of `Item.Root`: - `size` (`"default" | "sm"`, default `'default'`): The padding: `sm` for dense lists. - `variant` (`"outline" | "default" | "muted"`, default `'default'`): The look: `default` is plain, `outline` draws a border, `muted` fills it with the theme's surface. Props of `Item.Separator`: - `decorative` (`boolean`, default `true`): Whether the separator is decorative and should be hidden from assistive technologies. - `orientation` (`"horizontal" | "vertical"`, default `"horizontal"`): The orientation of the separator. Props of `Item.Media`: - `variant` (`"default" | "icon" | "image"`, default `'default'`): `icon` sets an icon in a small tile, `image` crops an image to a square; `default` shows the children as they are. Example: Basic A row: media, a title and description, and an action. ```svelte Invoice 1042 Nordlys AB, due 30 December. ``` Example: List Item.Group is a list; Item.Separator divides it. A link goes in the Item.Title, so each row stays a list item. ```svelte {#each people as person, index (person.id)} {#if index > 0}{/if} {person.initials} {person.name} {person.email} {person.role} {/each} ``` Example: Link A single row that opens something is the link itself, with the child snippet. ```svelte {#snippet child({ props })} Security Two-factor sign-in and active sessions. {/snippet} ``` Example: Settings variant="muted" on a settings row, with a Switch labelled by the title. ```svelte Payment reminders Email the client when an invoice is a week overdue. ```