Skip to content
Kits

SourceBadge

Linked source badge with an automatic same-origin favicon, derived hostname, and resilient fallback.

Composition

Linked source

The badge supplies its favicon automatically; SourceFavicon can also be used independently.

  • <SourceBadge>
    • <SourceFavicon />
    </SourceBadge>

Installation

Use this command to install the component.

Registry command
See registry manifest

Usage

Dependencies

Raw code

Installed component source and support files

src/registry/sources/control-ui/source-badge.tsx

Knobs

Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.

--cui-source-badge-* · 6 knobsHow the cascade resolves
--cui-source-badge-background<color>var(--background)
--cui-source-badge-foreground<color>var(--muted-foreground)
--cui-source-badge-hover-background<color>oklch(from var(--muted) l c h / 0.6)
--cui-source-badge-hover-foreground<color>var(--foreground)
--cui-source-badge-favicon-background<color>var(--muted)
--cui-source-badge-favicon-radius<length-percentage>var(--radius-sm)