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