# Empty

Explains why a collection has no content and offers a useful next step. Use it for first-use, filtered, or cleared states.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-empty--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/empty), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=18672-1039)

## Examples

### Default

```tsx
import { IconRadar } from "@kela-systems/icons/outline";
import {
  Button,
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@kela-systems/ui-components";

export default function EmptyDefault() {
  return (
    <Empty>
      <EmptyHeader>
        <EmptyMedia variant="icon">
          <IconRadar />
        </EmptyMedia>
        <EmptyTitle>No active tracks</EmptyTitle>
        <EmptyDescription>Tracks appear here as soon as a sensor detects one.</EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button variant="outline">View history</Button>
      </EmptyContent>
    </Empty>
  );
}
```

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### Empty

Also takes the attributes of the HTML element it renders.

### EmptyHeader

Also takes the attributes of the HTML element it renders.

### EmptyTitle

Also takes the attributes of the HTML element it renders.

### EmptyDescription

Also takes the attributes of the HTML element it renders.

### EmptyContent

Also takes the attributes of the HTML element it renders.

### EmptyMedia

| Variant | Values | Default |
| --- | --- | --- |
| `variant` | `default`, `icon` | `default` |

Also takes the attributes of the HTML element it renders.
