mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 23:40:39 +01:00
chore(Badge): default size to sm and add lg
This commit is contained in:
@@ -44,7 +44,7 @@ Use the `size` prop to change the size of the Badge.
|
||||
::component-card
|
||||
---
|
||||
props:
|
||||
size: 'md'
|
||||
size: 'sm'
|
||||
---
|
||||
|
||||
Badge
|
||||
|
||||
@@ -57,15 +57,16 @@ const badge = {
|
||||
rounded: 'rounded-md',
|
||||
font: 'font-medium',
|
||||
size: {
|
||||
sm: 'text-xs px-1.5 py-0.5',
|
||||
md: 'text-xs px-2 py-1',
|
||||
lg: 'text-xs px-2.5 py-1.5'
|
||||
xs: 'text-xs px-1.5 py-0.5',
|
||||
sm: 'text-xs px-2 py-1',
|
||||
md: 'text-sm px-2 py-1',
|
||||
lg: 'text-sm px-2.5 py-1.5'
|
||||
},
|
||||
variant: {
|
||||
solid: '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'
|
||||
},
|
||||
default: {
|
||||
size: 'md',
|
||||
size: 'sm',
|
||||
variant: 'solid',
|
||||
color: 'primary'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user