# Empty state

What a list or pane is missing, what to do about it, and the action that fills it.

Live variants: https://design.arcadia.is/components/empty-state

```tsx
import { EmptyState } from "@arcadia/ui";
```

```tsx
import { EmptyState, Button } from "@arcadia/ui";

<EmptyState align="center" framed icon="folder" title="No files yet"
    description="Files you add to this folder appear here."
    actions={<><Button variant="primary">Add files</Button><Button variant="ghost">Browse folders</Button></>} />
```

## Accessibility

The glyph and its tiles are decorative. The title is plain text unless `titleAs` sets a heading level. The readout is plain selectable text, not a live region: announce the failure where it happens. There is no live announcement by default. Each action keeps its own accessible name.

Use a Skeleton for a list that is still loading. Only show the empty state once you know there is nothing to show.

## API reference

### EmptyState

- `icon` (`IconName`)
- `media` (`Pick<AvatarPersonProps, "name" | "picture" | "hue"> | Pick<AvatarAgentProps, "kind" | "name" | "photoSrc" | "hue">`)
- `title` (`ReactNode`, required)
- `titleAs` (`"h1" | "h2" | "h3" | "h4" | "h5" | "h6"`)
- `description` (`string`)
- `readout` (`string`)
- `actions` (`ReactNode`)
- `align` (`"start" | "center"`, default `"start"`)
- `framed` (`boolean`, default `false`)
- `nesting` (`"contained-object"`): A separately framed object that belongs inside another one, not a layout wrapper.
- `rootStyle` (`RootStyle<EmptyStateKnobs>`)

Rest props go to `HTMLAttributes<HTMLDivElement>`.
