Initial commit: Add project files
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
defineProps<{ modelValue: boolean; inputId?: string; disabled?: boolean; invalid?: boolean }>()
|
||||
const emit = defineEmits<{ 'update:modelValue': [value: boolean]; blur: [event: FocusEvent] }>()
|
||||
</script>
|
||||
<template><input :id="inputId" class="ks-native-checkbox" type="checkbox" :checked="modelValue" :disabled="disabled" :aria-invalid="invalid || undefined" @change="emit('update:modelValue', ($event.target as HTMLInputElement).checked)" @blur="emit('blur', $event)" /></template>
|
||||
Reference in New Issue
Block a user