Skip to content
UI

Search docs

Search components and documentation

New
Menu

Empty

Displays an empty state placeholder with an icon, title, description and actions.

No messages yet

When you receive a message, it will show up here.

Installation

npx logic2b@latest add empty

Usage

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

<Empty>
  <EmptyHeader>
    <EmptyMedia variant="icon">
      <InboxIcon />
    </EmptyMedia>
    <EmptyTitle>No messages yet</EmptyTitle>
    <EmptyDescription>
      When you receive a message, it will show up here.
    </EmptyDescription>
  </EmptyHeader>
  <EmptyContent>
    <Button size="sm">Compose message</Button>
  </EmptyContent>
</Empty>

API

Prop Type Default
variant (EmptyMedia) default | icon default

Examples

With Actions

No projects yet

Create your first project to get started.

Minimal

404 — Not Found

The page you are looking for does not exist. Go home.