Home / Function/ BadgeVariants() — ui Function Reference

BadgeVariants() — ui Function Reference

Architecture documentation for the BadgeVariants() function in badge-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  0d8cf55d_787a_e692_a479_9e8f9562d88b["BadgeVariants()"]
  199245b1_56c0_3db4_6800_97ffcd015f1f["badge-example.tsx"]
  0d8cf55d_787a_e692_a479_9e8f9562d88b -->|defined in| 199245b1_56c0_3db4_6800_97ffcd015f1f
  style 0d8cf55d_787a_e692_a479_9e8f9562d88b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/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>
  )
}

Subdomains

Frequently Asked Questions

What does BadgeVariants() do?
BadgeVariants() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/badge-example.tsx.
Where is BadgeVariants() defined?
BadgeVariants() is defined in apps/v4/registry/bases/radix/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