diff --git a/packages/ui/src/design-system/Checkbox/Checkbox.tsx b/packages/ui/src/design-system/Checkbox/Checkbox.tsx index 91a4c170ad..9719112616 100644 --- a/packages/ui/src/design-system/Checkbox/Checkbox.tsx +++ b/packages/ui/src/design-system/Checkbox/Checkbox.tsx @@ -34,7 +34,8 @@ export const Checkbox = forwardRef( variant = 'checkbox', id, checked, - onChange = () => null, + onChange, + readOnly, ...remainingProps }: CheckboxProps, ref?: Ref @@ -48,6 +49,7 @@ export const Checkbox = forwardRef( type="checkbox" ref={ref} checked={checked ?? false} + readOnly={readOnly ?? !onChange} onChange={onChange} className={classNames( // styles communs