Skip to main content

Examples

Default

Small Title Size

With Secondary Action

Centered

Small Media

Props

EmptyState

EmptyStateSlot
Supporting body copy. Strings use library body styles; pass a node for rich text.
EmptyStateSlot
Top visual / illustration slot. A string is treated as an image URL (<img src={…}>); pass a node for custom layout.
"md" | "sm" | "lg" | "xs" | "xl"
default:"lg"
Height of the media container.
EmptyStateSlot
Primary call to action. A string renders a brand Button with that label; pass a node for links, loading, etc.
EmptyStateSlot
Secondary action below the primary. A string renders a secondary Button with that label; pass a node when you need more control.
EmptyStateSlot
Main heading. Strings use library heading styles; pass a node for full control.
"h2" | "h3" | "h1"
default:"h2"
Heading level of a string title, for screen readers and the page’s heading outline (for example "h1" on a whole-page state). Does not change how the title looks; use titleSize for that. Ignored when title is a node.
"md" | "sm" | "lg" | "xs" | "xl"
default:"lg"
How large the title looks, mapped to bold heading typography tokens. Independent of titleAs, which sets the heading level.
"default" | "centered"
default:"default"
Matches Figma property Property 1 (Default / centered).

Exported types

Also exported from @fanvue/ui: EmptyStateProps, EmptyStateSlot, EmptyStateTitleAs, EmptyStateVariant.
Setup: Installation · Theming