Aller au contenu principal

EmptyState

Every example on this page is live, drawn by the library's Storybook, where you can also change its props and see the result.

A centered placeholder for when there is no data to display.

Import​

import { EmptyState } from "~lib/feedback/empty-state";

Props​

NameTypeRequiredDefaultDescription
titlestringYesN/APrimary message
descriptionstringNoN/ASecondary description
iconReactNodeNoN/AIcon or symbol above title

Examples​

Simple​

Ouvrir Simple dans Storybook

With Description​

Ouvrir With Description dans Storybook

With Icon​

Ouvrir With Icon dans Storybook

Long Words​

A message passed on from an API often has a long web address in it. The title and description break inside a word when they have to, so the text stays inside even a narrow box.

Ouvrir Long Word dans Storybook

See Also​