Level 25
Since you want to use v-model on a custom component, you need to be able to emit the update:modelValue event when the data changes. So just create a data variable in your custom component that you use as the v-model in your checkboxes. Then you just need to emit the update:modelValue event when it changes.
This is demonstrated in the docs here: https://vuejs.org/guide/components/events.html#usage-with-v-model
Eg: You could have something like this (I'm assuming you're using Vue3):
emits: ['update:modelValue'],
data() {
selectedValues: this.modelValue,
},
watch: {
selectedValues(newValues) {
this.$emit('update:modelValue', newValues);
}
}