Elements Badge
Back to Elements

Badge

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

badge

Small status indicator or label with dark mode support.

Prop Type Default Description
ref bind: HTMLElement | null null
href
class as className string
variant "default" | "secondary" | "destructive" | "outline" "default"
status boolean false
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.