Empty State

Displays an empty state

Anatomy

Import and assemble the component:

1import { EmptyState } from '@raystack/apsara'
2
3<EmptyState />

API Reference

Renders a placeholder for empty content areas.

Prop

Type

Slots

Every rendered part carries a stable data-slot attribute for styling and testing:

SlotElement
empty-stateThe root element
empty-state-icon-containerWrapper around the icon
empty-state-iconThe icon element
empty-state-contentWrapper around the heading and subheading
empty-state-headingThe heading text (when heading is set)
empty-state-subheadingThe subheading text (when subHeading is set)
empty-state-actionsWrapper around the action buttons (empty2 variant only)

Accessibility

  • Uses semantic HTML elements for proper content structure
  • Heading and description are accessible to screen readers