blob: fdc8217f8e66eef8167105548b5b0e46d2b22a68 (
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
28
29
30
31
32
33
34
35
36
37
|
import type { ComponentMeta, ComponentStory } from '@storybook/react';
import { Heading } from '../../heading';
import { Section as SectionComponent } from './section';
/**
* Section - Storybook Meta
*/
export default {
title: 'Atoms/Layout/Section',
component: SectionComponent,
argTypes: {
children: {
description: 'The section contents.',
type: {
name: 'function',
required: true,
},
},
},
} as ComponentMeta<typeof SectionComponent>;
const Template: ComponentStory<typeof SectionComponent> = (args) => (
<SectionComponent {...args} />
);
/**
* Section Story
*/
export const Section = Template.bind({});
Section.args = {
children: (
<>
<Heading level={2}>A section title</Heading>
<div>The body</div>
</>
),
};
|