checkbox
v4.9.10arrow_drop_downIf true
, the component is checked.
The icon to display when the component is checked.
The color of the component. It supports those theme colors that make sense for this component.
If true
, the checkbox will be disabled.
If true
, the ripple effect will be disabled.
The icon to display when the component is unchecked.
The id of the input
element.
If true
, the component appears indeterminate.
This does not set the native input element to indeterminate due
to inconsistent behavior across browsers.
However, we set a data-indeterminate
attribute on the input.
The icon to display when the component is indeterminate.
Attributes applied to the input
element.
Pass a ref to the input
element.
Callback fired when the state is changed.
If true
, the input
element will be required.
The size of the checkbox.
small
is equivalent to the dense checkbox styling.
The value of the component. The DOM API casts this to a string. The browser uses “on” as the default value.
Name | Type | Description |
---|---|---|
checked | bool | If |
checkedIcon | node | The icon to display when the component is checked. |
classes | object | Override or extend the styles applied to the component. See CSS API below for more details. |
color | 'default' | 'primary' | 'secondary' | The color of the component. It supports those theme colors that make sense for this component. |
disabled | bool | If |
disableRipple | bool | If |
icon | node | The icon to display when the component is unchecked. |
id | string | The id of the |
indeterminate | bool | If |
indeterminateIcon | node | The icon to display when the component is indeterminate. |
inputProps | object | Attributes applied to the |
inputRef | custom | Pass a ref to the |
onChange | function | The event source of the callback.
You can pull out the new checked state by accessing |
required | bool | If |
size | 'medium' | 'small' | The size of the checkbox.
|
value | any | The value of the component. The DOM API casts this to a string. The browser uses “on” as the default value. |