disabled
Description
Optional. Defines whether a switch button is disabledUsage
disabled?: boolean;
Parameters
- true - the switch button is disabled
- false - (default) the switch button is enabled
Example
<Switch disabled={true} />
Details
It is also possible to set a switch button to the disabled state by declaring the property with no value:
<Switch disabled />
Related article: Setting the disabled state
Related sample: Switch Button