import type { ComponentMeta, ComponentStory } from '@storybook/react'; import { Input } from '../fields'; import { Legend } from '../legend'; import { Fieldset as FieldsetComponent } from './fieldset'; /** * Fieldset - Storybook Meta */ export default { title: 'Atoms/Forms', component: FieldsetComponent, args: { isDisabled: false, }, argTypes: { isDisabled: { control: { type: 'boolean', }, description: 'Define if the fields inside the fieldset should be disabled.', table: { category: 'Options', defaultValue: { summary: false }, }, type: { name: 'boolean', required: false, }, }, }, } as ComponentMeta; const Template: ComponentStory = (args) => (
); /** * Fieldset Story */ export const Fieldset = Template.bind({}); Fieldset.args = { legend: The fieldset legend, };