Switch — Playground
size
State
<label>
<input kuiSwitch type="checkbox" checked />
<span>Enable notifications</span>
</label>| Name | Type | Default | Description |
|---|---|---|---|
| size | 'xs' | 'sm' | 'md' | 'lg' | undefined | undefined | Switch size mapped to Kikita switch tokens. Resolved from defaults.switch.size, then the parent field, then the global defaults.size, then md. |
| invalid | boolean | false | Marks the switch invalid outside a kui-field error state. With [formField] the Field state wins. |
| id | string | undefined | undefined | Explicit id override. Inside kui-field, the field id is used when omitted. |
| KuiSwitchOptions | interface | - | Shape of defaults.switch: size. |
Inputs verified against @kikita-labs/ui v2.0.0 public typings.