import type { Meta, StoryObj } from '@storybook/vue3-vite'; import { LinkButton } from '@/components/button'; import TextInput from '@/components/text-input/text-input.vue'; import Label from '../label.vue'; const meta: Meta = { title: 'Components/Label', component: Label, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { for: 'email', }, render: args => ({ components: { Label, TextInput }, setup() { return { args }; }, template: `
`, }), }; export const Required: Story = { args: { for: 'date', required: true, }, render: args => ({ components: { Label, TextInput }, setup() { return { args }; }, template: `
`, }), }; export const Sublabel: Story = { args: { for: 'number', sublabel: '(Optional)', }, render: args => ({ components: { Label, TextInput }, setup() { return { args }; }, template: `
`, }), }; export const Information: Story = { args: { for: 'amount', required: true, information: 'Rates may apply', }, render: args => ({ components: { Label, TextInput }, setup() { return { args }; }, template: `
`, }), }; export const Button: Story = { args: { for: 'search', }, render: args => ({ components: { Label, LinkButton, TextInput }, setup() { return { args }; }, template: `
`, }), };