<script setup>
import {ref} from 'vue'
import AisRadioGroup
  from '@/components/radio-group/AisRadioGroup.vue'
import AisRadio
  from '@/components/radio/AisRadio.vue'

const options = ref(['Option 1', 'Option 2'])
const selection = ref('Option 2')
</script>

<template>
  <div class="grid gap-4">
    <AisRadioGroup
        class="px-4"
        :options="options"
        v-model="selection"
        name="example"
    >
      <AisRadio value="Body 1">Body 1</AisRadio>
      <AisRadio value="Body 2">Body 2</AisRadio>
    </AisRadioGroup>
    <div class="p-4 bg-ui-gray-50 border rounded">
      Selection: {{ selection }}
    </div>
  </div>
</template>
