Home / Function/ BadgeWithIconLeft() — ui Function Reference

BadgeWithIconLeft() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  53d15c26_7825_7d9b_17a2_e67dce1434b5["BadgeWithIconLeft()"]
  fc1ee748_75b6_9e50_9292_c5d6362e98a5["badge-example.tsx"]
  53d15c26_7825_7d9b_17a2_e67dce1434b5 -->|defined in| fc1ee748_75b6_9e50_9292_c5d6362e98a5
  style 53d15c26_7825_7d9b_17a2_e67dce1434b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

Subdomains

Frequently Asked Questions

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