import { type Meta, type StoryObj } from '@storybook/react-vite' import React from 'react' import { DocsTemplate } from '../../../.storybook' import FormLabel from './FormLabel' const meta: Meta = { title: 'Components/FormComponents/FormLabel', component: FormLabel, parameters: { docs: { page: () => ( The FormLabel component is a consistent label style specifically designed to accompany various form components. It serves as a descriptive identifier for form inputs, checkboxes, radio buttons, and other form elements, ensuring clarity and providing visual consistency throughout the form. The{' '} FormLabel aids users in understanding the purpose of each form element and improves overall usability. } infoBullets={[ Some form components that use the FormLabel include:{' '} TextInput,{' '} Select,{' '} MultiSelect,{' '} Slider, and{' '} Picker. , Apply the FormLabel component to all form elements, such as text inputs, selects, checkboxes, and radio buttons, to provide clear identification and context. , Use concise and meaningful labels that accurately describe the corresponding form elements, helping users complete the form efficiently. , ]} /> ), }, }, } export default meta type Story = StoryObj const Template: Story = { render: (args) => { return }, } export const Basic: Story = { ...Template, args: { label: 'The Label', }, } export const Error: Story = { ...Template, args: { label: 'The Label', error: true, }, } export const Required: Story = { ...Template, args: { label: 'The Label', required: true, }, } export const Tooltip: Story = { ...Template, args: { label: 'The Label', tooltip: { tooltipContent: 'This is the tooltip content.', }, }, } export const RightLabel: Story = { ...Template, args: { label: 'The Label', rightLabel: 'The Right Label', }, } export const Disabled: Story = { ...Template, args: { label: 'The Label', disabled: true, }, }