Skip to content

Empty

Displays helpful placeholder messages, illustrations, and action buttons when there is no data to show, guiding users on what to do next.

3.2 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

API Reference

The API design of this component is modeled after shadcn/ui's empty component to ensure familiarity and consistency for developers already using shadcn. This standardization makes it easier to adopt space ui while maintaining API parity with the patterns developers already know and love.

Empty

The main component of the empty state. Wraps the EmptyHeader and EmptyContent components.

Code

EmptyHeader

The EmptyHeader component wraps the empty media, title, and description.

Code

EmptyMedia

Use the EmptyMedia component to display the media of the empty state such as an icon or an image. You can also use it to display other components such as an avatar.

Code

EmptyTitle

Use the EmptyTitle component to display the title of the empty state.

Code

EmptyDescription

Use the EmptyDescription component to display the description of the empty state.

Code

EmptyContent

Use the EmptyContent component to display the content of the empty state such as a button, input or a link.

Code