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

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

<template>
  <div class="grid gap-4">
    <div class="flex items-center gap-3">
      Disable: <AisToggle v-model="groupDisabled"/>
    </div>

    <AisCheckboxGroup
        class="px-4"
        :options="options"
        v-model="selections"
        :disabled="groupDisabled"
    >
      <AisCheckbox value="Body 1">Body 1</AisCheckbox>
      <AisCheckbox value="Body 2" disabled>Body 2</AisCheckbox>
    </AisCheckboxGroup>
    <div class="p-4 bg-ui-gray-50 border rounded">
      Selection: {{ selections }}
    </div>
  </div>
</template>
