API and Development
EmptyState is used to display a message when there is no content to show, providing clear guidance on what users can do next or why content is unavailable. It provides a flexible interface for displaying empty content states with optional icons, illustrations, and actions. Built on FlexBox layout, it ensures consistent spacing and alignment while supporting various visual configurations for different use cases.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | Primary heading text for the empty state. |
|
| — | Custom actions slot that replaces |
|
| — | When true, merges props into the child element instead of wrapping it. |
|
| — | Optional secondary description displayed below the title. |
|
| — | Icon displayed above the content. Accepts an SVG asset or a custom icon component. |
|
| — | Custom illustration element displayed above the icon area. |
|
| — | Primary action element (e.g., a Button) displayed below the description. |
Interactive examples and edge cases for this component are in Storybook.
Use for simple empty states with just title and description text.
Use for empty states that benefit from visual reinforcement of the message.
Use for empty states that need more visual impact or brand consistency.
Use for empty states that guide users toward a clear next step.
Use for empty states that need multiple actions or custom action layouts.
Use for empty states that need formatted content or multiple paragraphs.
Use for empty search results with actionable guidance.
Use for empty states caused by errors or failures.
Use for empty states while content is loading.
Use for smaller empty states in constrained spaces.