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

const options = ref([
  { label: 'John', value: 'john-lennon', icon: 'person', disabled: false },
  { label: 'Paul', value: 'paul-mccartney', icon: 'person', disabled: false },
  { label: 'George', value: 'george-harrison', icon: 'person', disabled: false },
  { label: 'Ringo', value: 'ringo-starr', icon: 'person', disabled: false },
  { label: 'Pete', value: 'pete-best', icon: 'person', disabled: true },
])
const selection = ref('george-harrison')
</script>

<template>
  <div class="grid gap-4">
    <AisRadioGroup
        class="px-4"
        :options="options"
        v-model="selection"
        labelKey="label"
    />
    <div class="p-4 bg-ui-gray-50 border rounded">
      Selection: {{ selection }}
    </div>
  </div>
</template>
