Skip to main content

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​

Open Simple in Storybook

With Description​

Open With Description in Storybook

With Icon​

Open With Icon in 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.

Open Long Word in Storybook

See Also​