Files
upstream-shadcn-ui/apps/v4/examples/base/empty-card.tsx
upstream-mirror 1416db152c
All checks were successful
Release / Create Version PR or Publish Stable Release (push) Has been skipped
Release / Publish Prerelease to NPM (push) Has been skipped
Monitor Registries / Monitor registry health (push) Has been skipped
snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
2026-09-15 22:44:43 +05:00

45 lines
1.1 KiB
TypeScript

import { ArrowUpRightIcon, FolderIcon } from "lucide-react"
import { Button } from "@/styles/base-nova/ui/button"
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/styles/base-nova/ui/empty"
export function EmptyInCard() {
return (
<Empty>
<EmptyHeader>
<EmptyMedia variant="icon">
<FolderIcon />
</EmptyMedia>
<EmptyTitle>No projects yet</EmptyTitle>
<EmptyDescription>
You haven&apos;t created any projects yet. Get started by creating
your first project.
</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<div className="flex gap-2">
<Button render={<a href="#" />} nativeButton={false}>
Create project
</Button>
<Button variant="outline">Import project</Button>
</div>
<Button
variant="link"
render={<a href="#" />}
className="text-muted-foreground"
nativeButton={false}
>
Learn more <ArrowUpRightIcon />
</Button>
</EmptyContent>
</Empty>
)
}