Skip to main content

Empty State

Communicate when there is nothing to show.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
iconReactNode-
titlestring-The heading.
The heading.
descriptionstring-A line under the title.
A line under the title.
primaryLabelstring-
primaryIconReactNode-A glyph before the primary label.
A glyph before the primary label.
onPrimary() => void-Called when the primary button is pressed.
Called when the primary button is pressed.
secondaryLabelstring-The outlined button beside the primary one.
The outlined button beside the primary one.
secondaryIconReactNode-A glyph before the secondary action's label.
A glyph before the secondary action's label.
onSecondary() => void-Called when the secondary button is pressed.
Called when the secondary button is pressed.
iconToneaccent | neutralaccentaccent for an invitation to act, neutral for a plain absence: nothing found, nothing to do.
accent for an invitation to act, neutral for a plain absence: nothing found, nothing to do.
shapesquare | rounded | squircle | pillrounded
focusboolean | stringtrue