Switch
Switches allow users to turn an individual option on or off. They are usually used to activate or deactivate a specific setting.
| Property | Type | Values | Default | Required | Description |
|---|---|---|---|---|---|
| label | string | - | - | No | - |
| isSelected | boolean | - | false | No | - |
| size | string | s, m, l, xl | m | No | - |
| isEmphasized | boolean | - | false | No | - |
| isDisabled | boolean | - | false | No | - |
| isReadOnly | boolean | - | false | No | Behavior only: the switch keeps its default or selected appearance and does not respond to hover or press. No distinct read-only visual is defined in Figma (Web POC), react-spectrum S2, or Spectrum Web Components 1st-gen. |
| hideLabel | boolean | - | false | No | - |