Forms | SwitchTrack
SwitchTrack#
Description#
- The track and thumb of a switch. Drawing only, without state logic.
Props#
on(boolean) — Switch state. Required.size('small' | 'medium') — Switch size. Default:'small'.
Usage#
| |
Notes#
- Does not listen to events or emit; the containing button handles the interaction.
- Marked
aria-hiddento avoid duplicate readings in screen readers.