ComponentServer-safe

Empty

A composed first-run or no-result state with media, copy and actions.

Installation

Preview

No projects yet

Create your first project and start composing an interface from Rivelle primitives.

Usage

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

<Empty>
  <EmptyHeader>
    <EmptyMedia variant="icon">+</EmptyMedia>
    <EmptyTitle>No projects yet</EmptyTitle>
    <EmptyDescription>Create a project to start composing your interface.</EmptyDescription>
  </EmptyHeader>
  <EmptyContent>Create project</EmptyContent>
</Empty>

API reference

PropTypeDefaultDescription
variant"default" | "icon""default"Adds the elevated icon container to EmptyMedia.
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.