<Switch.Root error>
  <Switch.Thumb />
</Switch.Root>
<Switch.Root error variant="cta" checked>
  <Switch.Thumb />
</Switch.Root>
<Switch.Root error variant="primary" checked>
  <Switch.Thumb />
</Switch.Root>