Examples
Default
Small Title Size
With Secondary Action
Centered
Small Media
Props
EmptyState
Top visual / illustration slot. A string is treated as an image URL (
<img src={…}>); pass a node for custom layout.Primary call to action. A string renders a brand
Button with that label; pass a node for links, loading, etc.Secondary action below the primary. A string renders a secondary
Button with that label; pass a node when you need more control.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.How large the title looks, mapped to bold heading typography tokens. Independent of
titleAs, which sets the heading level.Exported types
Also exported from@fanvue/ui: EmptyStateProps, EmptyStateSlot, EmptyStateTitleAs, EmptyStateVariant.
Setup: Installation · Theming