-
Offerings: {{ offerings.join(', ') || 'none' }}
`,
}),
}
-// CheckboxGroup holds the array v-model and shares a name across children.
+// CheckboxGroup shares layout and a name across children; each checkbox still owns its own v-model.
export const Group: Story = {
render: () => ({
components: { NychCheckbox, NychCheckboxGroup },
setup() {
- const offerings = ref(['honey'])
- return { offerings }
+ const honey = ref(true)
+ const wine = ref(false)
+ const laurel = ref(false)
+ return { honey, wine, laurel }
},
template: `