A Checkbox represents a boolean value that can be in one of two states, true or false.
🙌 Heads up! This code is editable. The preview above will update to reflect your changes.
Usage
import { Checkbox } from 'materialish';
import 'materialish/materialish.css';
Props
Prop Name | Default Value | Description |
---|
className | | Additional class name(s) to add to the Checkbox |
style | | Inline styles to add to the root element of the Checkbox |
nodeRef | | Pass a ref to get access to the input element |
...rest | | Other props are placed on the underlying input element |
CSS Variables
Variable | Default Value | Description |
---|
--mt-baseFontSize | 1rem | The size of the checkbox is based off of this value |
--mt-checkbox-backgroundColor | --mt-mainColor, #2196f3 | The background color of the checkbox |
--mt-checkbox-tickColor | #ffffff | The color of the checkbox's tick |
--mt-checkbox-focusColor | #e8e8e8 | The color of the focused circle layer |