blob: 963fe33f97d02563b78f2c0c206861204eb84fad (
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
|
import type { Meta, StoryObj } from '@storybook/react';
import { Fieldset } from '../fieldset';
import { Legend, type LegendProps } from './legend';
const FieldsetWithLegend = (args: LegendProps) => (
<Fieldset>
<Legend {...args} />
</Fieldset>
);
const meta = {
component: Legend,
title: 'Atoms/Forms/Legend',
render: FieldsetWithLegend,
} satisfies Meta<typeof Legend>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
children: 'A legend',
},
};
|