Basic usage
With primary action
Include a primary call-to-action button.With secondary action
Add a secondary action for alternative paths.Variant: empty1 (default)
Centered layout with vertically stacked elements.Variant: empty2
Full-page layout with larger icon and left-aligned content.Custom styling
Customize individual elements with theclassNames prop.
Search results
Perfect for displaying when search returns no results.List or table empty state
Display when a list or table has no data.Error state
Use EmptyState to communicate errors.API reference
EmptyState
ReactNode
required
Icon element to display.
ReactNode
Main heading text.
ReactNode
Supporting description text.
ReactNode
Primary action button or element.
ReactNode
Secondary action button or element.
'empty1' | 'empty2'
default:"'empty1'"
Layout variant.
empty1 is centered and compact, empty2 is full-page with left alignment.{ container?: string; iconContainer?: string; icon?: string; heading?: string; subHeading?: string }
Custom CSS classes for individual elements.