snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
41
apps/v4/examples/aria/empty-demo.tsx
Normal file
41
apps/v4/examples/aria/empty-demo.tsx
Normal file
@@ -0,0 +1,41 @@
|
||||
import { IconFolderCode } from "@tabler/icons-react"
|
||||
import { ArrowUpRightIcon } from "lucide-react"
|
||||
|
||||
import { Button, LinkButton } from "@/styles/aria-nova/ui/button"
|
||||
import {
|
||||
Empty,
|
||||
EmptyContent,
|
||||
EmptyDescription,
|
||||
EmptyHeader,
|
||||
EmptyMedia,
|
||||
EmptyTitle,
|
||||
} from "@/styles/aria-nova/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 className="flex-row justify-center gap-2">
|
||||
<Button>Create Project</Button>
|
||||
<Button variant="outline">Import Project</Button>
|
||||
</EmptyContent>
|
||||
<LinkButton
|
||||
href="#"
|
||||
variant="link"
|
||||
className="text-muted-foreground"
|
||||
size="sm"
|
||||
>
|
||||
Learn More <ArrowUpRightIcon />
|
||||
</LinkButton>
|
||||
</Empty>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user