Same as React <input disabled={} />. Also adds a hidden input element with the same name so form submissions work.
truefalse
Whether state is indeterminate. NOTE: This can only be used with non-toggle components
truefalse
Function that will be called when the user clicks the check box. It will be passed a React event object. The current state can be accessed via event.target.checked. Same as React <input onChange={} />.
() => {}The border color when unchecked.
{
"dark": "rgba(255, 255, 255, 0.5)",
"light": "rgba(0, 0, 0, 0.15)"
}The stroke color for the CheckBox icon, and the border when checked.
string | { 'dark': string, 'light': string }
The background color of the toggle.
string | { 'dark': string, 'light': string }