---
title: "Item"
description: "A row with an icon or photo, a title, a line of text, and actions. It has three looks and three sizes, and it can be a link."
url: https://gelatinui.com/components/item
markdown_url: https://gelatinui.com/components/item.md
access: free
install: "npx shadcn@latest add @gelatin-ui/item"
registry_item: https://gelatinui.com/r/item.json
version: "2026-11-08"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Item

> A row with an icon or photo, a title, a line of text, and actions. It has three looks and three sizes, and it can be a link.

Page: https://gelatinui.com/components/item

## When to use it

Best for: One row of content: media, a title and a description, and actions.

- Use `ItemGroup` for a list.
- Use `render` for a link row.
- Use `variant` for `default`, `outline`, or `muted`.

## When not to use it

- For rows and columns of data, use a [Table](https://gelatinui.com/components/table.md).

## Notes for agents

- An `Item` in an `ItemGroup` renders an `<li>`: do not add your own.
- `ItemMedia` follows the size of the item.
- Pass `className` on the group for a grid.

## Anatomy

```text
Item
├─ ItemGroup (0..n)
├─ ItemSeparator (0..n)
├─ ItemMedia (0..n)
├─ ItemContent (0..n)
├─ ItemTitle (0..n)
├─ ItemDescription (0..n)
├─ ItemActions (0..n)
├─ ItemHeader (0..n)
└─ ItemFooter (0..n)
```

## API reference

### ItemGroup

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ItemSeparator

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `variant` | `"dashed" \| "dotted" \| "double" \| "fade" \| "solid"` |  | The line pattern. Default: `solid`. |
| `tone` | `"default" \| "destructive" \| "info" \| "muted" \| "primary" \| "success" \| "warning"` |  | The color, from the shared tokens. Default: `default` (the border color). |
| `children` | `ReactNode` |  | Content in the middle of a horizontal line: "or", a date, an icon. The line then splits in two halves around it, and a text label is the name that screen readers hear. |

Also takes every prop of Base UI `Separator`: https://base-ui.com/react/components/separator

### Item

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `"default" \| "sm" \| "xs"` | "default" |  |
| `variant` | `"default" \| "muted" \| "outline"` | "default" |  |

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### ItemMedia

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"default" \| "icon" \| "image"` | "default" |  |

### ItemContent

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ItemTitle

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ItemDescription

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ItemActions

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ItemHeader

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### ItemFooter

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| ItemGroup | `item-group` | `data-size` |  |  |
| ItemSeparator | `item-separator` |  |  |  |
| Item | `item` | `data-disabled` |  |  |
| ItemMedia | `item-media` |  |  |  |
| ItemContent | `item-content` | `data-size` |  |  |
| ItemTitle | `item-title` |  |  |  |
| ItemDescription | `item-description` | `data-size` |  |  |
| ItemActions | `item-actions` |  |  |  |
| ItemHeader | `item-header` |  |  |  |
| ItemFooter | `item-footer` |  |  |  |

## Usage

Compose the parts.

```tsx title="file-row.tsx"
import { Item, ItemContent, ItemDescription, ItemTitle } from "@/components/ui/item";

export function FileRow() {
  return (
    <Item variant="outline">
      <ItemContent>
        <ItemTitle>Q3 report.pdf</ItemTitle>
        <ItemDescription>2.4 MB, shared by Mei</ItemDescription>
      </ItemContent>
    </Item>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/item
```

It adds 9 registry items: 6 files, 1601 lines, and the npm packages `@base-ui/react`, `clsx`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Separator](https://gelatinui.com/components/separator.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Card](https://gelatinui.com/components/card.md)
- [Avatar](https://gelatinui.com/components/avatar.md)
- [Table](https://gelatinui.com/components/table.md)
