BadgeDemo() — ui Function Reference
Architecture documentation for the BadgeDemo() function in badge-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 5deaf548_f068_69df_40dc_2238f037d517["BadgeDemo()"] 00cd53f7_a112_56d7_e25f_6fda43694af9["badge-demo.tsx"] 5deaf548_f068_69df_40dc_2238f037d517 -->|defined in| 00cd53f7_a112_56d7_e25f_6fda43694af9 style 5deaf548_f068_69df_40dc_2238f037d517 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/examples/badge-demo.tsx lines 5–40
export default function BadgeDemo() {
return (
<div className="flex flex-col items-center gap-2">
<div className="flex w-full flex-wrap gap-2">
<Badge>Badge</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="destructive">Destructive</Badge>
<Badge variant="outline">Outline</Badge>
</div>
<div className="flex w-full flex-wrap gap-2">
<Badge
variant="secondary"
className="bg-blue-500 text-white dark:bg-blue-600"
>
<BadgeCheckIcon />
Verified
</Badge>
<Badge className="h-5 min-w-5 rounded-full px-1 font-mono tabular-nums">
8
</Badge>
<Badge
className="h-5 min-w-5 rounded-full px-1 font-mono tabular-nums"
variant="destructive"
>
99
</Badge>
<Badge
className="h-5 min-w-5 rounded-full px-1 font-mono tabular-nums"
variant="outline"
>
20+
</Badge>
</div>
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does BadgeDemo() do?
BadgeDemo() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/badge-demo.tsx.
Where is BadgeDemo() defined?
BadgeDemo() is defined in apps/v4/registry/new-york-v4/examples/badge-demo.tsx at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free