import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import { green } from '@material-ui/core/colors';
import FormGroup from '@material-ui/core/FormGroup';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Checkbox, { CheckboxProps } from '@material-ui/core/Checkbox';
import CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank';
import CheckBoxIcon from '@material-ui/icons/CheckBox';
import Favorite from '@material-ui/icons/Favorite';
import FavoriteBorder from '@material-ui/icons/FavoriteBorder';
const GreenCheckbox = withStyles({
root: {
color: green[400],
'&$checked': {
color: green[600],
},
},
checked: {},
})((props: CheckboxProps) => );
export default function CheckboxLabels() {
const [state, setState] = React.useState({
checkedA: true,
checkedB: true,
checkedF: true,
checkedG: true,
});
const handleChange = (event: React.ChangeEvent) => {
setState({ ...state, [event.target.name]: event.target.checked });
};
return (
}
label="Secondary"
/>
}
label="Primary"
/>
} label="Uncontrolled" />
} label="Disabled" />
} label="Disabled" />
}
label="Indeterminate"
/>
}
label="Custom color"
/>
} checkedIcon={} name="checkedH" />}
label="Custom icon"
/>
}
checkedIcon={}
name="checkedI"
/>
}
label="Custom size"
/>
);
}