Skip to content

Commit 88c5ee5

Browse files
committed
fix: spacing of the checkbox and label
1 parent dca95c9 commit 88c5ee5

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.changeset/shy-pens-speak.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@lambdacurry/forms": patch
3+
---
4+
5+
Fixed spacing for the checkbox label

packages/components/src/ui/checkbox-field.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const CheckboxField = React.forwardRef<HTMLDivElement, CheckboxProps>(
3636
control={control}
3737
name={name}
3838
render={({ field, fieldState }) => (
39-
<FormItem className={cn('flex flex-row items-start space-x-3 space-y-0', className)} ref={ref}>
39+
<FormItem className={cn('flex flex-row items-start space-y-0', className)} ref={ref}>
4040
<FormControl Component={components?.FormControl}>
4141
<CheckboxPrimitive.Root
4242
ref={field.ref}
@@ -45,7 +45,9 @@ const CheckboxField = React.forwardRef<HTMLDivElement, CheckboxProps>(
4545
onCheckedChange={field.onChange}
4646
{...props}
4747
>
48-
<CheckboxPrimitive.Indicator className={cn('flex items-center justify-center text-current', indicatorClassName)}>
48+
<CheckboxPrimitive.Indicator
49+
className={cn('flex items-center justify-center text-current', indicatorClassName)}
50+
>
4951
<Check className={cn('h-4 w-4', checkClassName)} />
5052
</CheckboxPrimitive.Indicator>
5153
</CheckboxPrimitive.Root>

0 commit comments

Comments
 (0)