Props
| Prop | Type | Default | Notes |
|---|---|---|---|
tone | neutral | primary | secondary | tertiary | error | neutral | |
size | xs | sm | md | lg | xl | md | |
appearance | solid | outline | dash | soft | ghost | solid | |
icon | string | '' |
StellarUI
<stellar-badge icon="mdi:tag-outline">Badge</stellar-badge>Complete props, events, slots, and implementation notes for the shipped badge.
| Prop | Type | Default | Notes |
|---|---|---|---|
tone | neutral | primary | secondary | tertiary | error | neutral | |
size | xs | sm | md | lg | xl | md | |
appearance | solid | outline | dash | soft | ghost | solid | |
icon | string | '' |
| Event | Source | Notes |
|---|---|---|
| custom events | none | stellar-badge is a presentational label and does not emit custom events. |
| Slot | Notes |
|---|---|
icon | Optional leading icon content. Overrides the icon prop when populated. |
| default | Badge label content. |