Skip to content

Empty

Use the Empty component to display an empty state.

No projects yet
You haven't created any projects. Get started by creating your first one.

Install

Bash
npx @madeui/cli add empty

Usage

TSX
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from '@/components/ui/empty';

Composition

TSX
<Empty>
  <EmptyHeader>
    <EmptyMedia variant="icon" />
    <EmptyTitle />
    <EmptyDescription />
  </EmptyHeader>
  <EmptyContent />
</Empty>

Outline

Override style on Empty for a solid border instead of the default dashed one.

No messages
You're all caught up. New messages will show up here.

Avatar

Use EmptyMedia with our Avatar for people- or team-shaped empty states.

MD
No team members
Invite people to collaborate on this project.

Input group

Nest an InputGroup inside EmptyContent for a search-style empty state.

No results found
Try searching for a different keyword.

API reference

Plain layout markup. EmptyMedia accepts variant: 'default' (transparent) or 'icon' (muted rounded square for an icon). Every part accepts a style prop (StyleXStyles, merged last).

Was this page helpful?