<script setup lang="ts">
import { Field, type FieldRootProps } from '@ark-ui/vue/field'
import { Switch } from '@ark-ui/vue/switch'

defineProps<FieldRootProps>()
</script>

<template>
  <Field.Root v-bind="$props">
    <Switch.Root>
      <Switch.Control>
        <Switch.Thumb />
      </Switch.Control>
      <Switch.Label>Label</Switch.Label>
      <Switch.HiddenInput />
    </Switch.Root>
    <Field.HelperText>Additional Info</Field.HelperText>
    <Field.ErrorText>Error Info</Field.ErrorText>
  </Field.Root>
</template>
