blob: b23d889a5e9069edd87a105ad84485679bf882be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import type { ComponentMeta, ComponentStory } from '@storybook/react';
import { Fieldset } from '../fieldset';
import { Legend as LegendComponent } from './legend';
/**
* Legend - Storybook Meta
*/
export default {
title: 'Atoms/Forms',
component: LegendComponent,
args: {},
argTypes: {},
} as ComponentMeta<typeof LegendComponent>;
const Template: ComponentStory<typeof LegendComponent> = (args) => (
<Fieldset>
<LegendComponent {...args} />
</Fieldset>
);
/**
* Legend Story
*/
export const Legend = Template.bind({});
Legend.args = {
children: 'A fieldset legend',
};
|