mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 10:20:42 +01:00
docs(components): split color and variant into two sections
This commit is contained in:
@@ -28,15 +28,28 @@ props:
|
||||
---
|
||||
::
|
||||
|
||||
### Style
|
||||
### Color
|
||||
|
||||
Use the `color` and `variant` props to change the style of the Badge.
|
||||
Use the `color` prop to change the color of the Badge.
|
||||
|
||||
::component-code
|
||||
---
|
||||
props:
|
||||
color: gray
|
||||
variant: solid
|
||||
slots:
|
||||
default: Badge
|
||||
---
|
||||
::
|
||||
|
||||
### Variant
|
||||
|
||||
Use the `variant` props to change the variant of the Badge.
|
||||
|
||||
::component-code
|
||||
---
|
||||
props:
|
||||
color: gray
|
||||
variant: outline
|
||||
slots:
|
||||
default: Badge
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user