mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 22:11:43 +01:00
chore(RadioGroup): rename options prop to items (#98)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@ export default (config: { colors: string[] }) => ({
|
||||
root: 'relative',
|
||||
fieldset: 'flex',
|
||||
legend: 'mb-1 block font-medium text-gray-700 dark:text-gray-200',
|
||||
option: 'flex items-start',
|
||||
item: 'flex items-start',
|
||||
base: 'rounded-full ring ring-inset ring-gray-300 dark:ring-gray-700 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-offset-white dark:focus-visible:outline-offset-gray-900',
|
||||
indicator: 'flex items-center justify-center size-full rounded-full after:bg-white dark:after:bg-gray-900 after:rounded-full',
|
||||
container: 'flex items-center',
|
||||
@@ -29,35 +29,35 @@ export default (config: { colors: string[] }) => ({
|
||||
xs: {
|
||||
fieldset: 'gap-0.5',
|
||||
base: 'size-3',
|
||||
option: 'text-xs',
|
||||
item: 'text-xs',
|
||||
container: 'h-4',
|
||||
indicator: 'after:size-1'
|
||||
},
|
||||
sm: {
|
||||
fieldset: 'gap-0.5',
|
||||
base: 'size-3.5',
|
||||
option: 'text-xs',
|
||||
item: 'text-xs',
|
||||
container: 'h-4',
|
||||
indicator: 'after:size-1'
|
||||
},
|
||||
md: {
|
||||
fieldset: 'gap-1',
|
||||
base: 'size-4',
|
||||
option: 'text-sm',
|
||||
item: 'text-sm',
|
||||
container: 'h-5',
|
||||
indicator: 'after:size-1.5'
|
||||
},
|
||||
lg: {
|
||||
fieldset: 'gap-1',
|
||||
base: 'size-4.5',
|
||||
option: 'text-sm',
|
||||
item: 'text-sm',
|
||||
container: 'h-5',
|
||||
indicator: 'after:size-1.5'
|
||||
},
|
||||
xl: {
|
||||
fieldset: 'gap-1.5',
|
||||
base: 'size-5',
|
||||
option: 'text-base',
|
||||
item: 'text-base',
|
||||
container: 'h-6',
|
||||
indicator: 'after:size-2'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user