Empty State

The Empty State component provides a way to display an empty state with an optional icon, title, message, and action button.

Usage

Default

Nothing to Show

This section doesn't have any content yet.

<EmptyState title="Nothing to Show" message="This section doesn't have any content yet." />

Props

Sortable data table
PropTypeDefaultDescription
iconReact.ReactNode-Optional icon to display above the empty state message.
titlestring"Nothing Here Yet"Main heading text for the empty state.
messagestring"There's no content to display."Secondary message describing the empty state.
actionLabelstring-Label for the primary action button (optional).
onActionClick(event: React.MouseEvent) => void-Callback when the action button is clicked.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultVisual theme for the empty state card.
state"" | "success" | "error" | "warning"-State variant for feedback (e.g., success, error, warning).
size"xs" | "small" | "medium" | "large" | "xl"Configured DefaultSize of the card and text.
outlinebooleanfalseIf true, renders with an outline.
rounding"none" | "small" | "medium" | "large"Configured DefaultBorder radius style.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultShadow style for the card.
classNamestring-Custom CSS class for the container.
data-testidstring"empty-state"Custom test ID for end-to-end or unit testing.