BadgeVariants() — ui Function Reference
Architecture documentation for the BadgeVariants() function in badge-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 1bc51cf0_fe30_ed80_438c_317c32090b6c["BadgeVariants()"] fc1ee748_75b6_9e50_9292_c5d6362e98a5["badge-example.tsx"] 1bc51cf0_fe30_ed80_438c_317c32090b6c -->|defined in| fc1ee748_75b6_9e50_9292_c5d6362e98a5 style 1bc51cf0_fe30_ed80_438c_317c32090b6c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/badge-example.tsx lines 23–36
function BadgeVariants() {
return (
<Example title="Variants">
<div className="flex flex-wrap gap-2">
<Badge>Default</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="destructive">Destructive</Badge>
<Badge variant="outline">Outline</Badge>
<Badge variant="ghost">Ghost</Badge>
<Badge variant="link">Link</Badge>
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does BadgeVariants() do?
BadgeVariants() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/badge-example.tsx.
Where is BadgeVariants() defined?
BadgeVariants() is defined in apps/v4/registry/bases/base/examples/badge-example.tsx at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free