From 0e512be10549e523eb5a6e1d6c4a7d64f55796d7 Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Wed, 1 Mar 2023 14:02:09 +0330 Subject: [PATCH] feat: add name prop to Checkbox component --- packages/lsd-react/src/components/Checkbox/Checkbox.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/lsd-react/src/components/Checkbox/Checkbox.tsx b/packages/lsd-react/src/components/Checkbox/Checkbox.tsx index c827f3d..43c649c 100644 --- a/packages/lsd-react/src/components/Checkbox/Checkbox.tsx +++ b/packages/lsd-react/src/components/Checkbox/Checkbox.tsx @@ -12,7 +12,7 @@ export type CheckboxProps = Omit< > & Pick< React.InputHTMLAttributes, - 'onChange' | 'checked' | 'defaultChecked' + 'name' | 'onChange' | 'checked' | 'defaultChecked' > & { disabled?: boolean indeterminate?: boolean @@ -23,6 +23,7 @@ export type CheckboxProps = Omit< export const Checkbox: React.FC & { classes: typeof checkboxClasses } = ({ + name, size = 'large', onChange, checked, @@ -75,6 +76,7 @@ export const Checkbox: React.FC & { >