Core Components
Empty
Use the Empty component to display an empty state.
No Projects Yet
You haven't created any projects yet. Get started by creating your first project.
import { ArrowUpRightIcon, FolderSimpleIcon } from "@phosphor-icons/react"
import { Button } from "@/components/ui/button"
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/empty"
export function EmptyDemo() {
return (
<Empty>
<EmptyHeader>
<EmptyMedia variant="icon">
<FolderSimpleIcon />
</EmptyMedia>
<EmptyTitle>No Projects Yet</EmptyTitle>
<EmptyDescription>
You haven't created any projects yet. Get started by creating
your first project.
</EmptyDescription>
</EmptyHeader>
<EmptyContent className="flex-row justify-center gap-2">
<Button>Create Project</Button>
<Button variant="outline">Import Project</Button>
</EmptyContent>
<Button
variant="link"
render={<a href="#" />}
className="text-muted-foreground"
size="sm"
nativeButton={false}
>
Learn More <ArrowUpRightIcon />
</Button>
</Empty>
)
}Installation
Install with the shadcn CLI. An AI assistant with the shadcn MCP server configured can also install components automatically when you ask for them (see Getting Started).
npx shadcn@latest add emptyDocumentation
For all options, variants and the full API, see the shadcn/ui docs.
Last updated on