---
title: EmptyState
description: "`EmptyState` is a component used to display when a resource is empty or unavailable."
links:
- style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/empty-state/empty-state.style.ts
- source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/empty-state
- storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-emptystate--basic
---
# EmptyState
`EmptyState` is a component used to display when a resource is empty or unavailable.
```tsx
}
title="Your cart is empty"
/>
```
## Usage
```tsx
import { EmptyState } from "@yamada-ui/react"
```
```tsx
import { EmptyState } from "@/components/ui"
```
```tsx
import { EmptyState } from "@workspaces/ui"
```
```tsx
```
:::tip
If data is loading, use [Loading](https://yamada-ui.com/docs/components/loading.md) or [Skeleton](https://yamada-ui.com/docs/components/skeleton.md).
:::
### Change Size
```tsx
{(size, index) => (
}
title="Your cart is empty"
/>
)}
```
### Add Children
```tsx
}
title="Your cart is empty"
>
```
### Custom
```tsx
Your cart is empty
Explore our products and add items to your cart
```
## Props
### EmptyState.Root
| Prop | Default | Type | Description |
| ------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
| `size` | `"md"` | `"lg" \| "md" \| "sm"` | The size of the component. |
| `contentProps` | - | `EmptyStateContentProps` | The props for the empty state content component. |
| `description` | - | `ReactNode` | The empty state description to use. |
| `descriptionProps` | - | `EmptyStateDescriptionProps` | The props for the empty state description component. |
| `indicator` | - | `ReactNode` | The empty state indicator to use. |
| `indicatorProps` | - | `EmptyStateIndicatorProps` | The props for the empty state indicator component. |
| `title` | - | `ReactNode` | The empty state title to use. |
| `titleProps` | - | `EmptyStateTitleProps` | The props for the empty state title component. |
### EmptyState.Content
| Prop | Default | Type | Description |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
### EmptyState.Description
| Prop | Default | Type | Description |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
### EmptyState.Indicator
| Prop | Default | Type | Description |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
### EmptyState.Title
| Prop | Default | Type | Description |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
## Similar Components
- [Alert](https://yamada-ui.com/docs/components/alert.md): `Alert` is a component that conveys information to the user.
- [CircleProgress](https://yamada-ui.com/docs/components/circle-progress.md): `CircleProgress` is a component that displays progress in a circular progress bar.
- [Progress](https://yamada-ui.com/docs/components/progress.md): `Progress` is a component for visually indicating progress.
- [Skeleton](https://yamada-ui.com/docs/components/skeleton.md): `Skeleton` is a component that acts as a placeholder until content is loaded.
- [Snacks](https://yamada-ui.com/docs/components/snacks.md): `Snacks` is a component for controlling notifications used in forms and other similar situations.
- [Status](https://yamada-ui.com/docs/components/status.md): `Status` is component that indicate the status of a process or state.
- [Tip](https://yamada-ui.com/docs/components/tip.md): `Tip` is a component that displays supplementary information with a built-in icon trigger.