mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 05:58:07 +01:00
feat(Badge): add square prop (#4008)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -53,6 +53,9 @@ export default (options: Required<ModuleOptions>) => ({
|
||||
leadingAvatarSize: '2xs',
|
||||
trailingIcon: 'size-6'
|
||||
}
|
||||
},
|
||||
square: {
|
||||
true: ''
|
||||
}
|
||||
},
|
||||
compoundVariants: [...(options.theme.colors || []).map((color: string) => ({
|
||||
@@ -87,6 +90,26 @@ export default (options: Required<ModuleOptions>) => ({
|
||||
color: 'neutral',
|
||||
variant: 'subtle',
|
||||
class: 'ring ring-inset ring-accented text-default bg-elevated'
|
||||
}, {
|
||||
size: 'xs',
|
||||
square: true,
|
||||
class: 'p-0.5'
|
||||
}, {
|
||||
size: 'sm',
|
||||
square: true,
|
||||
class: 'p-1'
|
||||
}, {
|
||||
size: 'md',
|
||||
square: true,
|
||||
class: 'p-1'
|
||||
}, {
|
||||
size: 'lg',
|
||||
square: true,
|
||||
class: 'p-1'
|
||||
}, {
|
||||
size: 'xl',
|
||||
square: true,
|
||||
class: 'p-1'
|
||||
}],
|
||||
defaultVariants: {
|
||||
color: 'primary',
|
||||
|
||||
Reference in New Issue
Block a user