A toggle switch for boolean values. Supports labels, per-state icons, and three sizes.
Bind value to track the switch state.
Pass a string to label for a static label beside the switch.
Pass { on, off } to show different labels per state — both strings are rendered in a stacked grid and cross-faded.
Pass icons to render icons inside the thumb. Icons are only shown at normal size.
Three sizes: normal (default), compact, and small.
The disabled prop makes the switch inert and visually dimmed.