Skip to content

EmptyState

stable

Placeholder for empty, pending, or error states with action slot

Feedback/Storybook ↗
import { EmptyState } from "@danagraph/design-system"
Loading demo…

Props

variant
Type "empty" | "pending" | "error"Default "empty"

State variant

title
Type stringDefault —

Custom title text (defaults to variant name)

description
Type stringDefault —

Descriptive text below title

action
Type ReactNodeDefault —

Action element (e.g., button)

compact
Type booleanDefault false

Compact padding

emptypendingerrorsemantictypebordersurfacespace
MobileWorks As-Is

Illustration and text stack vertically by default. Works across all viewports.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?