BadgeWithIconLeft() — ui Function Reference
Architecture documentation for the BadgeWithIconLeft() function in badge-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD d88f7443_a336_36eb_1885_e9087e13680f["BadgeWithIconLeft()"] 199245b1_56c0_3db4_6800_97ffcd015f1f["badge-example.tsx"] d88f7443_a336_36eb_1885_e9087e13680f -->|defined in| 199245b1_56c0_3db4_6800_97ffcd015f1f style d88f7443_a336_36eb_1885_e9087e13680f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/badge-example.tsx lines 38–111
function BadgeWithIconLeft() {
return (
<Example title="Icon Left" className="max-w-fit">
<div className="flex flex-wrap gap-2">
<Badge>
<IconPlaceholder
lucide="BadgeCheck"
tabler="IconRosetteDiscountCheck"
hugeicons="CheckmarkBadge02Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
data-icon="inline-start"
/>
Default
</Badge>
<Badge variant="secondary">
<IconPlaceholder
lucide="BadgeCheck"
tabler="IconRosetteDiscountCheck"
hugeicons="CheckmarkBadge02Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
data-icon="inline-start"
/>
Secondary
</Badge>
<Badge variant="destructive">
<IconPlaceholder
lucide="BadgeCheck"
tabler="IconRosetteDiscountCheck"
hugeicons="CheckmarkBadge02Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
data-icon="inline-start"
/>
Destructive
</Badge>
<Badge variant="outline">
<IconPlaceholder
lucide="BadgeCheck"
tabler="IconRosetteDiscountCheck"
hugeicons="CheckmarkBadge02Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
data-icon="inline-start"
/>
Outline
</Badge>
<Badge variant="ghost">
<IconPlaceholder
lucide="BadgeCheck"
tabler="IconRosetteDiscountCheck"
hugeicons="CheckmarkBadge02Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
data-icon="inline-start"
/>
Ghost
</Badge>
<Badge variant="link">
<IconPlaceholder
lucide="BadgeCheck"
tabler="IconRosetteDiscountCheck"
hugeicons="CheckmarkBadge02Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
data-icon="inline-start"
/>
Link
</Badge>
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does BadgeWithIconLeft() do?
BadgeWithIconLeft() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/badge-example.tsx.
Where is BadgeWithIconLeft() defined?
BadgeWithIconLeft() is defined in apps/v4/registry/bases/radix/examples/badge-example.tsx at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free