import type { Meta, StoryObj } from '@storybook/vue3-vite' import VvCheckbox from '@/components/VvCheckbox/VvCheckbox.vue' import VvCheckboxGroup from '@/components/VvCheckboxGroup/VvCheckboxGroup.vue' import { argTypes, defaultArgs } from './CheckboxGroup.settings' import { defaultTest } from './CheckboxGroup.test' const meta: Meta = { title: 'Components/CheckboxGroup/Slots', component: VvCheckboxGroup, args: defaultArgs, argTypes, } export default meta type Story = StoryObj export const Default: Story = { args: { ...defaultArgs, }, render: args => ({ components: { VvCheckboxGroup, VvCheckbox }, setup() { return { args } }, data: () => ({ inputValue: undefined }), template: /* html */ ` Option 1 Option 2 Option 3
Value: {{inputValue}}
`, }), play: defaultTest, } export const Hint: Story = { ...Default, args: { ...defaultArgs, hint: 'Hint slot!', }, }