mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Update checkbox component
This commit is contained in:
@@ -8,18 +8,18 @@ type CheckBoxProps = {
|
|||||||
label: string;
|
label: string;
|
||||||
name: string;
|
name: string;
|
||||||
checked: boolean;
|
checked: boolean;
|
||||||
onChange: () => void;
|
onClick: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
const CheckBox = ({
|
const CheckBox = ({
|
||||||
label,
|
label,
|
||||||
name,
|
name,
|
||||||
checked,
|
checked,
|
||||||
onChange,
|
onClick,
|
||||||
...props
|
...props
|
||||||
}: CheckBoxProps) => {
|
}: CheckBoxProps) => {
|
||||||
return (
|
return (
|
||||||
<Wrapper checked={checked} {...props} onClick={onChange}>
|
<Wrapper checked={checked} {...props} onClick={onClick}>
|
||||||
<div className='checkbox'>
|
<div className='checkbox'>
|
||||||
<Check />
|
<Check />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user