mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 05:37:56 +01:00
docs(badge): update
This commit is contained in:
@@ -15,8 +15,6 @@ Use the default slot to set the label of the Badge.
|
|||||||
slots:
|
slots:
|
||||||
default: Badge
|
default: Badge
|
||||||
---
|
---
|
||||||
|
|
||||||
Badge
|
|
||||||
::
|
::
|
||||||
|
|
||||||
You can achieve the same result by using the `label` prop.
|
You can achieve the same result by using the `label` prop.
|
||||||
@@ -34,18 +32,12 @@ Use the `color` and `variant` props to change the style of the Badge.
|
|||||||
|
|
||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
|
props:
|
||||||
|
color: gray
|
||||||
|
variant: solid
|
||||||
slots:
|
slots:
|
||||||
default: Badge
|
default: Badge
|
||||||
props:
|
|
||||||
color: primary
|
|
||||||
variant: solid
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Badge
|
|
||||||
::
|
|
||||||
|
|
||||||
::tip
|
|
||||||
Try out the `gray` color for a neutral style.
|
|
||||||
::
|
::
|
||||||
|
|
||||||
### Size
|
### Size
|
||||||
@@ -54,13 +46,11 @@ Use the `size` prop to change the size of the Badge.
|
|||||||
|
|
||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
slots:
|
|
||||||
default: Badge
|
|
||||||
props:
|
props:
|
||||||
size: md
|
size: md
|
||||||
|
slots:
|
||||||
|
default: Badge
|
||||||
---
|
---
|
||||||
|
|
||||||
Badge
|
|
||||||
::
|
::
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|||||||
Reference in New Issue
Block a user