<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('Head 1')
</script>

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