<script setup>
import {ref} from 'vue'
import AisCheckboxGroup
  from '@/components/checkbox-group/AisCheckboxGroup.vue'
import AisCheckbox
  from '@/components/checkbox/AisCheckbox.vue'

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

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