# Empty

> An empty state with icon, message and call to action.

- Category: [Actions & feedback](https://tarve.dev/docs.md#actions)
- Import: `import { Empty } from "@tarve/core";`
- Props type: `EmptyProps`
- Source: [packages/core/src/form-controls.ts:76](https://github.com/omarcosr/tarve/blob/main/packages/core/src/form-controls.ts#L76)

## Usage

```tsx title="Empty.tsx"
import { Button, Empty, Icon } from "@tarve/core";

<Empty
  style={{ width: 420 }}
  icon={<Icon name="folder" size={28} />}
  title="No projects yet"
  description="Create your first project to get started."
  action={<Button>New project</Button>}
/>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `title` (required) | `string` | — |  |
| `action` | `Child` | — |  |
| `description` | `string` | — |  |
| `icon` | `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: [Toaster](https://tarve.dev/docs/components/Toaster.md) · Next: [Modal](https://tarve.dev/docs/components/Modal.md)

---

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