blob: 21a697789ca555b6193b7106ac2cb02aca7927fa [file] [log] [blame]
<template>
<input
type="checkbox"
:checked="modelValue"
class="field"
v-bind="$attrs"
@change="$emit('update:modelValue', $event.target.checked)"
>
<label v-if="label"> {{ label }} </label>
</template>
<script>
export default {
props: {
label: {
type: String,
default: ''
},
modelValue: {
type: Boolean,
default: false
}
}
}
</script>