# Item

> A list row with title, description and leading/trailing slots.

- Category: [Data display](https://tarve.dev/docs.md#data)
- Import: `import { Item } from "@tarve/core";`
- Props type: `ItemProps`
- Source: [packages/core/src/form-controls.ts:251](https://github.com/omarcosr/tarve/blob/main/packages/core/src/form-controls.ts#L251)

## Usage

```tsx title="Item.tsx"
import { Avatar, Badge, Item } from "@tarve/core";

<Item
  style={{ width: 360 }}
  title="Ada Lovelace"
  description="ada@example.com"
  leading={<Avatar fallback="AL" size={32} />}
  trailing={<Badge variant="secondary">Owner</Badge>}
  onClick={() => console.log("open profile")}
/>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `title` (required) | `string` | — |  |
| `description` | `string` | — |  |
| `disabled` | `boolean` | — |  |
| `leading` | `Child` | — |  |
| `onClick` | `() => void` | — |  |
| `selected` | `boolean` | — |  |
| `trailing` | `Child` | — |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [Card](https://tarve.dev/docs/components/Card.md) · Next: [List](https://tarve.dev/docs/components/List.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Item · Index for agents: https://tarve.dev/llms.txt
