mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 09:20:36 +01:00
feat(Badge): rename outline to subtle + add soft variants
This commit is contained in:
@@ -31,6 +31,8 @@ props:
|
|||||||
|
|
||||||
Use the `color` and `variant` props to change the visual style of the Badge.
|
Use the `color` and `variant` props to change the visual style of the Badge.
|
||||||
|
|
||||||
|
- `variant` can be `solid` (default), `outline`, `soft` or `subtle`.
|
||||||
|
|
||||||
::component-card
|
::component-card
|
||||||
---
|
---
|
||||||
props:
|
props:
|
||||||
|
|||||||
@@ -132,7 +132,9 @@ const badge = {
|
|||||||
},
|
},
|
||||||
variant: {
|
variant: {
|
||||||
solid: 'bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900',
|
solid: 'bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900',
|
||||||
outline: 'bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-10 dark:ring-opacity-20'
|
outline: 'text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400',
|
||||||
|
soft: 'bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400',
|
||||||
|
subtle: 'bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-25 dark:ring-opacity-25'
|
||||||
},
|
},
|
||||||
default: {
|
default: {
|
||||||
size: 'sm',
|
size: 'sm',
|
||||||
|
|||||||
Reference in New Issue
Block a user