Empty
A composable empty-state component with an expressive squircle media badge, title, description, and action slot.
No messages yet
When you receive messages, they will appear here.
import { InboxIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/empty";
export default function Particle() {
return (
<Empty>
<EmptyMedia>
<InboxIcon />
</EmptyMedia>
<EmptyHeader>
<EmptyTitle>No messages yet</EmptyTitle>
<EmptyDescription>
When you receive messages, they will appear here.
</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button>Compose message</Button>
</EmptyContent>
</Empty>
);
}
Installation
pnpm dlx shadcn@latest add @taut-ui/empty
Usage
import { Button } from "@/components/ui/button"
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/empty"<Empty>
<EmptyMedia>
<InboxIcon />
</EmptyMedia>
<EmptyHeader>
<EmptyTitle>No messages yet</EmptyTitle>
<EmptyDescription>
When you receive messages, they will appear here.
</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button>Compose message</Button>
</EmptyContent>
</Empty>Examples
Vibrant
No projects yet
Create your first project to organize components, themes, and team releases.
import { FolderPlusIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/empty";
export default function Particle() {
return (
<Empty>
<EmptyMedia variant="vibrant">
<FolderPlusIcon />
</EmptyMedia>
<EmptyHeader>
<EmptyTitle>No projects yet</EmptyTitle>
<EmptyDescription>
Create your first project to organize components, themes, and team
releases.
</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button>New project</Button>
<Button variant="ghost">Import repository</Button>
</EmptyContent>
</Empty>
);
}
In Card
No matching results
Try adjusting your search query or clearing active filters.
import { SearchXIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Card } from "@/components/ui/card";
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/empty";
export default function Particle() {
return (
<Card className="w-full max-w-md">
<Empty className="py-10">
<EmptyMedia>
<SearchXIcon />
</EmptyMedia>
<EmptyHeader>
<EmptyTitle>No matching results</EmptyTitle>
<EmptyDescription>
Try adjusting your search query or clearing active filters.
</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button size="sm" variant="outline">
Clear filters
</Button>
</EmptyContent>
</Empty>
</Card>
);
}
With Input
No team members
Invite collaborators by email to start working together in this workspace.
import { UsersIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/empty";
import { Input } from "@/components/ui/input";
export default function Particle() {
return (
<Empty>
<EmptyMedia>
<UsersIcon />
</EmptyMedia>
<EmptyHeader>
<EmptyTitle>No team members</EmptyTitle>
<EmptyDescription>
Invite collaborators by email to start working together in this
workspace.
</EmptyDescription>
</EmptyHeader>
<EmptyContent className="flex-nowrap">
<Input placeholder="name@company.com" type="email" />
<Button>Invite</Button>
</EmptyContent>
</Empty>
);
}
API Reference
Empty
Root centered flex-column container for the empty state.
| Prop | Type | Description |
|---|---|---|
className | string | Additional CSS classes |
...props | React.ComponentProps<"div"> | All standard div attributes are supported |
EmptyMedia
Visual media container displayed above EmptyHeader, featuring a layered squircle backdrop for icon variants.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "icon" | "vibrant" | "default" | "icon" | "icon" uses neutral surfaces, "vibrant" uses primary, "default" is bare |
className | string | - | Additional CSS classes |
...props | React.ComponentProps<"div"> | - | All standard div attributes are supported |
EmptyHeader
Groups EmptyTitle and EmptyDescription with centered text alignment.
EmptyTitle
Heading (<h3>) for the empty-state title.
EmptyDescription
Supporting paragraph (<p>) with balanced line width (max-w-[36ch]) and styled inline links.
EmptyContent
Flexible row container for primary actions, secondary buttons, or inline inputs.