<script lang="ts">
import type { SlotsType, UnwrapRef } from 'vue'
import type { UseCheckboxContext } from './use-checkbox-context.ts'

export interface CheckboxContextProps extends SlotsType<{
  default: UnwrapRef<UseCheckboxContext>
}> {}
</script>

<script setup lang="ts">
import { useCheckboxContext } from './use-checkbox-context.ts'

const checkbox = useCheckboxContext()

defineSlots<{
  default(checkbox: UnwrapRef<UseCheckboxContext>): unknown
}>()
</script>

<template>
  <slot v-bind="checkbox"></slot>
</template>
