Toggle component is a styled wrapper to a checkbox / label pair. It accepts a "checked" prop, and a "onToggle" prop that is triggered by the checkbox onChange event.
Name | Description | Type | Default Value |
---|---|---|---|
aria-label | Defines a string value that labels the current element. | string | undefined | n/a |
checked | boolean | undefined | n/a | |
disabled | boolean | undefined | n/a | |
onChange | ChangeEventHandler<HTMLInputElement> | n/a |