diff --git a/src/components/checkbox/checkbox.tsx b/src/components/checkbox/checkbox.tsx index fa0f713e7b..f3c7f8719b 100644 --- a/src/components/checkbox/checkbox.tsx +++ b/src/components/checkbox/checkbox.tsx @@ -25,6 +25,7 @@ export type CheckboxProps = { id?: string icon?: (checked: boolean, indeterminate: boolean) => React.ReactNode children?: React.ReactNode + onClick?: (event: React.MouseEvent) => void } & NativeProps<'--icon-size' | '--font-size' | '--gap'> const defaultProps = { @@ -110,6 +111,7 @@ export const Checkbox = forwardRef((p, ref) => { return withNativeProps( props,