Toggle API
API reference docs for theToggle
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
|
| Label for the toggle describing its purpose. | _ |
|
| Disables the toggle, making it non-interactive and visually styled as disabled. |
|
|
| The size of the toggle. |
|
|
| Defines the value of the toggle input, used when submitting a form. | _ |
|
| Sets the checked state of the toggle when using controlled components. | _ |
|
| A unique ID for the toggle. | _ |
|
| The name attribute of the toggle, useful for grouping in forms. | _ |
|
| Description text displayed alongside the toggle, providing additional context. | _ |
|
| The ID of the element that describes the toggle for accessibility. | _ |
|
| Event handler triggered when the toggle loses focus. | _ |
|
| Event handler triggered when the toggle is clicked. | _ |
|
| Event handler triggered when the toggle value changes. | _ |