# Empty State

A purposeful empty state with contextual explanation and primary and secondary recovery actions.

## Installation

```bash
npx shadcn@latest add https://amro-ui.vercel.app/r/empty-state.json
```

[Registry JSON](https://amro-ui.vercel.app/r/empty-state.json)

## Preview

```tsx
import { EmptyState } from "@amro-ui/react";

export function Preview() {
  return (
    <div className="grid min-h-72 w-full place-items-center rounded-xl border bg-background p-6 sm:p-10">
      <EmptyState />
    </div>
  );
}
```


## Source

### ui/empty-state.tsx

```tsx
"use client";

import "@/components/amro/amro-ui.css";

export { EmptyState } from "@/components/amro/components/shared";
export type { EmptyStateProps } from "@/components/amro/components/shared";
```



## Usage

A purposeful empty state with contextual explanation and primary and secondary recovery actions.

### Package

```tsx
import { EmptyState } from "@amro-ui/react";

<EmptyState />
```

### shadcn copy

```tsx
import { EmptyState } from "@/components/ui/empty-state";

<EmptyState />
```

