<Switch.Root required>
  <Switch.Thumb />
</Switch.Root>