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


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

<template>
  <div class="grid gap-4">
    <AisSelect v-model="selectedSize"
               :options="['sm', 'md', 'lg']"
               size="sm"
    />
    <AisRadioGroup
        :options="options"
        v-model="selection"
        :size="selectedSize"
        class="px-4"
    >
      <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>
