<script setup lang="ts">
import Checkbox from 'primevue/checkbox'

defineProps<{ modelValue: boolean; inputId?: string; disabled?: boolean }>()
defineEmits<{ 'update:modelValue': [value: boolean] }>()
</script>

<template>
  <Checkbox
    class="ks-checkbox"
    :input-id="inputId"
    :model-value="modelValue"
    binary
    :disabled="disabled"
    @update:model-value="$emit('update:modelValue', Boolean($event))"
  />
</template>
