#API
Badge
props
Name | Description | Type | Default | Values | Required |
|---|---|---|---|---|---|
size | Control size. One of xs, sm, md, lg, xl. | String | md | xssmmdlgxl | |
color | Theme or CSS color used for the control accents. | String | primary | ||
tag | Root element tag. | String | div | ||
position | Vertical placement of the badge relative to the content (top, bottom). | String | top | topbottom | |
align | Horizontal placement of the badge relative to the content (left, right). | String | right | leftright | |
offsetX | Horizontal offset in pixels from the aligned edge. | Number String | |||
offsetY | Vertical offset in pixels from the positioned edge. | Number String | |||
animated | Adds a ping animation around the badge. | Boolean | false | ||
outlined | Adds a border around the badge. | Boolean | false | ||
icon | Icon name for the badge indicator. Prefer the content slot for custom content. | String | |||
show | Controls whether the badge indicator is visible. | Boolean | true |
slots
Name | Description |
|---|---|
default | Content the badge is attached to. |
content | Badge label or custom indicator content. |