feat: add "checked" attribute to Switch component

This commit is contained in:
bsourisse 2023-01-18 15:01:00 +01:00
parent 053626c757
commit c2d48f8821
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ export default function Switch(props) {
<div className={classes.switch}>
<label className={classes.pureMaterialSwitch}>
<input
checked={props.checked}
disabled={props.disabled}
type='checkbox'
onChange={(e) => props.onChange(e.target.checked)}