---
title: Empty
description: Use the Empty component to display an empty state.
component: true
---
## Installation
CLIManual
```bash
npx shadcn@latest add empty
```
Copy and paste the following code into your project.Update the import paths to match your project setup.
## Usage
```tsx
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/empty"
```
```tsx
No dataNo data found
```
## Examples
### Outline
Use the `border` utility class to create an outline empty state.
### Background
Use the `bg-*` and `bg-gradient-*` utilities to add a background to the empty state.
### Avatar
Use the `EmptyMedia` component to display an avatar in the empty state.
### Avatar Group
Use the `EmptyMedia` component to display an avatar group in the empty state.
### InputGroup
You can add an `InputGroup` component to the `EmptyContent` component.
## API Reference
### Empty
The main component of the empty state. Wraps the `EmptyHeader` and `EmptyContent` components.
| Prop | Type | Default |
| ----------- | -------- | ------- |
| `className` | `string` | |
```tsx
```
### EmptyHeader
The `EmptyHeader` component wraps the empty media, title, and description.
| Prop | Type | Default |
| ----------- | -------- | ------- |
| `className` | `string` | |
```tsx
```
### EmptyMedia
Use the `EmptyMedia` component to display the media of the empty state such as an icon or an image. You can also use it to display other components such as an avatar.
| Prop | Type | Default |
| ----------- | --------------------- | --------- |
| `variant` | `"default" \| "icon"` | `default` |
| `className` | `string` | |
```tsx
```
```tsx
CN
```
### EmptyTitle
Use the `EmptyTitle` component to display the title of the empty state.
| Prop | Type | Default |
| ----------- | -------- | ------- |
| `className` | `string` | |
```tsx
No data
```
### EmptyDescription
Use the `EmptyDescription` component to display the description of the empty state.
| Prop | Type | Default |
| ----------- | -------- | ------- |
| `className` | `string` | |
```tsx
You do not have any notifications.
```
### EmptyContent
Use the `EmptyContent` component to display the content of the empty state such as a button, input or a link.
| Prop | Type | Default |
| ----------- | -------- | ------- |
| `className` | `string` | |
```tsx
```