chore(Badge): default size to sm and add lg

This commit is contained in:
Benjamin Canac
2023-05-09 14:27:20 +02:00
parent 410d2351d6
commit d5d250b8cf
2 changed files with 6 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ Use the `size` prop to change the size of the Badge.
::component-card
---
props:
size: 'md'
size: 'sm'
---
Badge

View File

@@ -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'
}