Checkbox
Checkbox
Wrapper over the checkbox with the label
tag.
jsx
import Checkbox from '@semcore/ui/checkbox';
<Checkbox />;
CheckboxProps
& {...}Name | Type | Description |
---|---|---|
onChange | (checked: boolean, e: React.SyntheticEvent<>) => void | |
checked | boolean | |
defaultChecked | boolean | Default state of uncontrolled checkbox |
label | string | Checkbox text |
indeterminate | boolean | Special indeterminate state |
disabled | boolean | Special disabled state |
state | Checkbox visual state | |
size | Checkbox size | |
theme | string | Checkbox color |
Checkbox.Value
Represents input[type=checkbox]
and span
with an icon.
jsx
import Checkbox from '@semcore/ui/checkbox';
<Checkbox.Value />;
Checkbox.Value.Control
Represents input[type=checkbox]
jsx
import Checkbox from '@semcore/ui/checkbox';
<Checkbox.Value.Control />;
CheckboxValueControlProps
Represents span
in Checkbox.Value
.
jsx
import Checkbox from '@semcore/ui/checkbox';
<Checkbox.Value.CheckMark />;
CheckboxValueCheckMarkProps
Checkbox.Text
It is the customized Text
from intergalactic/typography
, depending on the size.
jsx
import Checkbox from '@semcore/ui/checkbox';
<Checkbox.Text />;
CheckboxTextProps
& {...}Name | Type | Description |
---|---|---|
disabled | boolean | Deprecated |