Skip to content

Commit ca27c48

Browse files
committed
chore(Checkbox): update to 5.0.0
1 parent e572a5e commit ca27c48

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Checkbox/Checkbox.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ FormControl.args = {}
3535

3636
export const Colors: Story<CheckboxProps> = (args) => {
3737
return (
38-
<div className="flex flex-col items-center float-left gap-2">
38+
<div className="flex flex-row items-center float-left gap-2">
3939
<Checkbox {...args} defaultChecked color="primary" />
4040
<Checkbox {...args} defaultChecked color="secondary" />
4141
<Checkbox {...args} defaultChecked color="accent" />
42+
<Checkbox {...args} defaultChecked color="neutral" />
4243
<Checkbox {...args} defaultChecked color="success" />
4344
<Checkbox {...args} defaultChecked color="warning" />
4445
<Checkbox {...args} defaultChecked color="info" />
@@ -50,11 +51,12 @@ Colors.args = {}
5051

5152
export const Sizes: Story<CheckboxProps> = (args) => {
5253
return (
53-
<div className="flex flex-col items-center float-left gap-2">
54+
<div className="flex flex-row items-center float-left gap-2">
5455
<Checkbox {...args} defaultChecked size="xs" />
5556
<Checkbox {...args} defaultChecked size="sm" />
5657
<Checkbox {...args} defaultChecked size="md" />
5758
<Checkbox {...args} defaultChecked size="lg" />
59+
<Checkbox {...args} defaultChecked size="xl" />
5860
</div>
5961
)
6062
}

src/Checkbox/Checkbox.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(
3939
'checkbox',
4040
className,
4141
clsx({
42+
'checkbox-xl': size === 'xl',
4243
'checkbox-lg': size === 'lg',
4344
'checkbox-md': size === 'md',
4445
'checkbox-sm': size === 'sm',
4546
'checkbox-xs': size === 'xs',
47+
'checkbox-neutral': color === 'neutral',
4648
'checkbox-primary': color === 'primary',
4749
'checkbox-secondary': color === 'secondary',
4850
'checkbox-accent': color === 'accent',

0 commit comments

Comments
 (0)