Props
interface SwitchProps extends SharedSwitchProps
aria-describedby | undefined | string A space separated list of description element IDs. |
aria-label | undefined | string The label for the switch. Use this if the switch lacks a visible text label. |
aria-labelledby | undefined | string A space separated list of label element IDs. |
className | undefined | string Additional class names to apply to the switch. |
disabled | undefined | false | true If set to |
id | undefined | string The ID of the switch element. |
label | React.ReactNode | string The label node for the switch. |
onChange | undefined | A function to be called when the switch is toggled. |
size | ControlSizeProp The size of the switch. Defaults to |
style | React.CSSProperties Additional styles to apply to the switch. |
tabIndex | undefined | number Indicates if the switch can be focused and if/where it participates in sequential keyboard navigation. |
value | boolean If set to |
variant | SwitchVariant The variant of the switch. Defaults to |