feat(Badge)!: add colors and variants (solid has changed)

This commit is contained in:
Benjamin Canac
2023-07-26 15:01:25 +02:00
parent 0420a17c1d
commit 05503e564c
2 changed files with 87 additions and 2 deletions

View File

@@ -41,6 +41,60 @@ props:
Badge
::
Besides all the colors from the `ui.colors` object, you can also use the `white` and `black` colors with their pre-defined variants.
#### White
::component-card
---
props:
color: 'white'
variant: 'solid'
ui:
variant:
solid: 1
excludedProps:
- color
---
Badge
::
#### Gray
::component-card
---
props:
color: 'gray'
variant: 'solid'
ui:
variant:
solid: 1
excludedProps:
- color
---
Badge
::
#### Black
::component-card
---
props:
color: 'black'
variant: 'solid'
ui:
variant:
solid: 1
link: 1
excludedProps:
- color
---
Badge
::
### Size
Use the `size` prop to change the size of the Badge.
@@ -54,6 +108,26 @@ props:
Badge
::
### Rounded
To customize the border radius of the Badge, you can use the `ui` prop.
::component-card
---
props:
ui:
rounded: 'rounded-full'
excludedProps:
- ui
---
Badge
::
::callout{icon="i-heroicons-light-bulb"}
You can customize the whole [preset](#preset) by using the `ui` prop.
::
## Props
:component-props