Skip to main content

EmptyState

EmptyState — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

  • Use it when A zero / no-results / error / offline state, with a clear next step.
  • Reach for something else when Brief loading — use Spinner or a skeleton.

Accessibility

Communicates the situation in words and offers a clear next step; not reliant on illustration alone.

Import

const { EmptyState } = window.PrismDesignSystem_39d121;

Examples

No results

<EmptyState variant="no-results" title="No matches"
description="Try a different search." />

Error with retry

<EmptyState variant="error" title="Couldn’t load invoices"
actions={<Button onPress={retry}>Try again</Button>} />

Props

PropTypeRequiredDescription
variantEmptyVariantPicks the default glyph + tone. Default "empty".
sizeEmptySizeFootprint. Default "section".
titleReact.ReactNode
descriptionReact.ReactNode
iconReact.ReactNodeSwap just the glyph (keeps the tinted disc).
illustrationReact.ReactNodeReplace the disc entirely with custom artwork.
actionsReact.ReactNodeButtons / links rendered below the copy.
auxReact.ReactNodeSmall auxiliary line under the actions (page/section only).