import type { Args, Meta, StoryObj } from '@storybook/vue3-vite' import BaseInputLabel from '@/components/BaseInputLabel.vue' import { docCellStyle, docLabelStyle, docRowWrapStyle } from '@/stories/documentationStyles' const meta = { title: 'Atoms/BaseInputLabel', component: BaseInputLabel, argTypes: { isInvalid: { control: 'boolean', description: 'Whether the label should show an invalid state', }, }, } satisfies Meta export default meta type Story = StoryObj /** * Default label used above form controls. Use the controls to experiment * with each prop in isolation. */ export const Default: Story = { args: { isInvalid: false }, render: (args: Args) => ({ components: { BaseInputLabel }, setup() { return { args } }, template: `
Default Label
`, }), } /** * Default and invalid states side by side. */ export const States: Story = { parameters: { controls: { disable: true } }, render: () => ({ components: { BaseInputLabel }, setup() { return { docCellStyle, docLabelStyle, docRowWrapStyle } }, template: `
Default Default Label
Invalid Invalid Label
`, }), }