Skip to Content
Documentation
Saas UI
Get Pro
Getting started
Components
Overview

Empty State

Used to indicate when a resource is empty or unavailable.

SourceStorybookRecipe

Your cart is empty

Explore our products and add items to your cart

Anatomy

import { EmptyState } from '@saas-ui/react/empty-state'
<EmptyState title="No data" description="No data found" />

Examples

Action

Here's an example of an empty state with an action button.

Start adding tokens

Add a new design token to get started

List

Here's an example of an empty state with a list.

No results found

Try adjusting your search

  • Try removing filters
  • Try different keywords

Props

Root

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

The color palette of the component

size 'md'
'sm' | 'md' | 'lg'

The size of the component

align 'center'
'start' | 'center'

The align of the component

as
React.ElementType

The underlying element to render.

asChild
boolean

Use the provided child element as the default rendered element, combining their props and behavior.

For more details, read our Composition guide.
unstyled
boolean

Whether to remove the component's style.

Previous

Editable

Next

Field