Badge

neutral destructive warning attention success information focus primary secondary
Attribute Type Documentation Default Value
style :string

Controls whether the badge uses a solid or light fill.

"fill"
Required label * :string

Provides fallback text when the default slot is empty.

color :string

Controls the semantic color. Disabled badges ignore this value.

"neutral"
size :string

Controls the badge dimensions and text size.

"small"
disabled :boolean

Uses the disabled presentation regardless of color.

false
dot :boolean

Displays a dot before the label when the icon slot is empty.

false
icon_only :boolean

Hides the label and displays only the icon slot.

false
rest :global
icon :slot

The icon to render next to the label. Overrides the dot attribute.