CardDemo() — ui Function Reference
Architecture documentation for the CardDemo() function in card-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 64849a59_afcc_9106_226b_c2de5078d98f["CardDemo()"] 05a8aefd_a23d_1f87_27ed_1a69d7da7b39["card-demo.tsx"] 64849a59_afcc_9106_226b_c2de5078d98f -->|defined in| 05a8aefd_a23d_1f87_27ed_1a69d7da7b39 style 64849a59_afcc_9106_226b_c2de5078d98f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/internal/sink/components/card-demo.tsx lines 32–78
export function CardDemo({ className, ...props }: CardProps) {
return (
<Card className={cn("w-[380px]", className)} {...props}>
<CardHeader>
<CardTitle>Notifications</CardTitle>
<CardDescription>You have 3 unread messages.</CardDescription>
</CardHeader>
<CardContent className="grid gap-4">
<div className=" flex items-center space-x-4 rounded-md border p-4">
<BellRing />
<div className="flex-1 space-y-1">
<p className="text-sm font-medium leading-none">
Push Notifications
</p>
<p className="text-sm text-muted-foreground">
Send notifications to device.
</p>
</div>
<Switch />
</div>
<div>
{notifications.map((notification, index) => (
<div
key={index}
className="mb-4 grid grid-cols-[25px_1fr] items-start pb-4 last:mb-0 last:pb-0"
>
<span className="flex h-2 w-2 translate-y-1 rounded-full bg-sky-500" />
<div className="space-y-1">
<p className="text-sm font-medium leading-none">
{notification.title}
</p>
<p className="text-sm text-muted-foreground">
{notification.description}
</p>
</div>
</div>
))}
</div>
</CardContent>
<CardFooter>
<Button className="w-full">
<Check /> Mark all as read
</Button>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does CardDemo() do?
CardDemo() is a function in the ui codebase, defined in deprecated/www/registry/new-york/internal/sink/components/card-demo.tsx.
Where is CardDemo() defined?
CardDemo() is defined in deprecated/www/registry/new-york/internal/sink/components/card-demo.tsx at line 32.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free