Files
shadcn-ui/apps/v4/examples/base/empty-with-icon.tsx
2026-01-14 09:25:14 +04:00

34 lines
814 B
TypeScript

import { Button } from "@/examples/base/ui/button"
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/examples/base/ui/empty"
import { FolderIcon, PlusIcon } from "lucide-react"
export function EmptyWithIcon() {
return (
<Empty className="border">
<EmptyHeader>
<EmptyMedia variant="icon">
<FolderIcon />
</EmptyMedia>
<EmptyTitle>Nothing to see here</EmptyTitle>
<EmptyDescription>
No posts have been created yet. Get started by{" "}
<a href="#">creating your first post</a>.
</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button variant="outline">
<PlusIcon />
New Post
</Button>
</EmptyContent>
</Empty>
)
}