mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 12:39:35 +01:00
842 B
842 B
description, links
| description | links | |||||||
|---|---|---|---|---|---|---|---|---|
| Display a short text to represent a status or a category. |
|
Usage
Use the default slot to set the label of the Badge.
::component-code
slots: default: Badge
::
You can achieve the same result by using the label prop.
::component-code
props: label: Badge
::
Style
Use the color and variant props to change the style of the Badge.
::component-code
props: color: gray variant: solid slots: default: Badge
::
Size
Use the size prop to change the size of the Badge.
::component-code
props: size: md slots: default: Badge
::
API
Props
:component-props
Slots
:component-slots
Theme
:component-theme