# Empty State (Andromeda Legacy)

Empty State is a component of the free, MIT-licensed Andromeda Legacy design system from AI Canvas (https://aicanvas.me). Index of every system, component and install setup: https://aicanvas.me/llms.txt

Centered icon + uppercase mono title + sans description + optional action. Built on Card so it inherits brackets.

- Design system: [Andromeda Legacy](https://aicanvas.me/design-systems/andromeda.md)
- License: MIT
- Install slug: `andromeda-empty-state`
- Page: https://aicanvas.me/design-systems/andromeda/empty-state

## Install

```bash
npx shadcn@latest add @aicanvas/andromeda-empty-state
```

Needs a free AI Canvas account; signed out, the command writes a placeholder (an `AccountRequired` notice) instead.

Every Andromeda Legacy component at once: `npx shadcn@latest add @aicanvas/andromeda`.

Token setup: the Install section of https://aicanvas.me/llms.txt.

## Use it

It installs to `components/aicanvas/andromeda/components/EmptyState.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import { EmptyState } from '@/components/aicanvas/andromeda/components/EmptyState'
```

## Example

```tsx
import { EmptyState, EmptyStateAction, EmptyStateDescription, EmptyStateIcon, EmptyStateTitle } from '@/components/aicanvas/andromeda/components/EmptyState'
import { MailOpen } from '@/components/icons/mail-open'
import { Button } from '@/components/aicanvas/andromeda/components/Button'

<EmptyState>
  <EmptyStateIcon><MailOpen size="1em" /></EmptyStateIcon>
  <EmptyStateTitle>No invoices yet</EmptyStateTitle>
  <EmptyStateDescription>New invoices will appear here.</EmptyStateDescription>
  <EmptyStateAction>
    <Button size="sm">Create invoice</Button>
  </EmptyStateAction>
</EmptyState>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children?` | `React.ReactNode` |  | Content rendered inside the component. |
| `className?` | `string` |  | Additional CSS classes applied to the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles applied to the root element. |

## More Andromeda Legacy components

- [Gauge](https://aicanvas.me/design-systems/andromeda/gauge.md)
- [Heat Grid](https://aicanvas.me/design-systems/andromeda/heat-grid.md)
- [Icon Button](https://aicanvas.me/design-systems/andromeda/icon-button.md)
- [Input](https://aicanvas.me/design-systems/andromeda/input.md)
- [Metric Chart](https://aicanvas.me/design-systems/andromeda/metric-chart.md)
