snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
45
apps/v4/registry/new-york-v4/examples/empty-demo.tsx
Normal file
45
apps/v4/registry/new-york-v4/examples/empty-demo.tsx
Normal file
@@ -0,0 +1,45 @@
|
||||
import { IconFolderCode } from "@tabler/icons-react"
|
||||
import { ArrowUpRightIcon } from "lucide-react"
|
||||
|
||||
import { Button } from "@/registry/new-york-v4/ui/button"
|
||||
import {
|
||||
Empty,
|
||||
EmptyContent,
|
||||
EmptyDescription,
|
||||
EmptyHeader,
|
||||
EmptyMedia,
|
||||
EmptyTitle,
|
||||
} from "@/registry/new-york-v4/ui/empty"
|
||||
|
||||
export default function EmptyDemo() {
|
||||
return (
|
||||
<Empty>
|
||||
<EmptyHeader>
|
||||
<EmptyMedia variant="icon">
|
||||
<IconFolderCode />
|
||||
</EmptyMedia>
|
||||
<EmptyTitle>No Projects Yet</EmptyTitle>
|
||||
<EmptyDescription>
|
||||
You haven't created any projects yet. Get started by creating
|
||||
your first project.
|
||||
</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
<EmptyContent>
|
||||
<div className="flex gap-2">
|
||||
<Button>Create Project</Button>
|
||||
<Button variant="outline">Import Project</Button>
|
||||
</div>
|
||||
</EmptyContent>
|
||||
<Button
|
||||
variant="link"
|
||||
asChild
|
||||
className="text-muted-foreground"
|
||||
size="sm"
|
||||
>
|
||||
<a href="#">
|
||||
Learn More <ArrowUpRightIcon />
|
||||
</a>
|
||||
</Button>
|
||||
</Empty>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user