# Switch _(no submodules)_ - switch.variants — `switchVariants` and `switchThumb… - [switch.variants](./switch.variants.md) — `switchVariants` and `switchThumbVariants` are the two cva (class-variance-authority) configurations that together powe… - switch.variants — `switchVariants` and `switchThumb… - [switch.variants](./switch.variants.md) — `switchVariants` and `switchThumbVariants` are the two cva (class-variance-authority) configurations that together powe… - switch.variants — `switchVariants` and `switchThumb… - [switch.variants](./switch.variants.md) — `switchVariants` and `switchThumbVariants` are the two cva (class-variance-authority) configurations that together powe… - switch.variants — `switchVariants` and `switchThumb… - [switch.variants](./switch.variants.md) — `switchVariants` and `switchThumbVariants` are the two cva (class-variance-authority) configurations that together powe… - [switch.variants](./switch.variants.md) — `switchVariants` and `switchThumbVariants` are the two cva (class-variance-authority) configurations that together powe… ## Purpose `` is the chassis on/off toggle primitive built on `@radix-ui/react-switch`. Radix supplies the a11y semantics (`role="switch"`, `aria-checked` reflecting boolean state, native `Space` activation, `disabled` propagation); the chassis layers theme-driven variant resolution, the sliding-thumb render, and the cva `size` axis that scales both the track and the thumb proportionally. The thumb cva is exported alongside the track cva so consumers can theme each independently. Refs are forwarded to the Radix Root which renders a styled `