Components

Empty

Displays a placeholder state when a view has no content, combining an illustration or icon, a title, description, and an optional action.

Stable
GitHub

No Items Yet

Create your first item to get started.

Anatomy

Anatomy
import {Empty} from '@staffbase/design';

<Empty.Root>
  <Empty.Media />
  <Empty.Title />
  <Empty.Description />
</Empty.Root>;

Examples

Sizes

No Results Found

Try adjusting your search or filters.

Something Went Wrong

We couldn’t load this content. Please try again.

No Files Yet

Upload a file to get started.

API reference

Root

NameTypeDescription
children
ReactNode
The content of the empty state. Compose with Empty.Media, Empty.Title, Empty.Description, and a Button.

Media

NameTypeDescription
children
ReactNode
An illustration or icon component.
size
xsmdlg
Controls the dimensions of the media container. xs is 40px, md is 128px, lg is 160px.
Default:md

Title

NameTypeDescription
children
ReactNode
The title text.
as
h2h3h4p
The element to render the title as. Change this to match the heading hierarchy of the page.

Description

NameTypeDescription
children
ReactNode
A short supporting description. Renders as a p.