Empty State
Placeholder view for zero-data states, cleared crates, and empty playlists — available in framed default and quiet minimal variants.
Default Empty State
Dashed container with monospace heading, descriptive copy, and optional call-to-action slot.
empty-state-example.tsx
No Vinyl Records Found
You haven't cataloged any vinyl pressings or tape releases into this shelf yet.
Minimal Variant
Quiet, button-free empty state featuring only a dimmed icon and subtle description.
empty-state-minimal.tsx
No tracks queued for tonight's set yet.
Quick Import
Example.tsxtsx
1import { EmptyState } from "@rekodo/react";2import { Music2 } from "lucide-react";3
4export function Example() {5 return (6 <EmptyState7 variant="minimal"8 icon={<Music2 className="h-7 w-7" />}9 description="No tracks queued for tonight's set yet."10 />11 );12}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "minimal" | "default" | Visual style. Minimal renders a quiet, button-free dimmed icon and description. |
| title | string | undefined | Optional heading text. |
| description | string | undefined | Secondary helper copy. |
| icon | ReactNode | undefined | Icon element (framed in default variant, dimmed and bare in minimal variant). |
| action | ReactNode | undefined | Call-to-action button or link (only rendered in default variant). |