aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/article/article.stories.tsx
blob: 4c5b158a76e90fe00ac45584467e95ffcf763a87 (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
import type { ComponentMeta, ComponentStory } from '@storybook/react';
import { Article as ArticleComponent } from './article';

/**
 * Article - Storybook Meta
 */
export default {
  title: 'Atoms/Layout',
  component: ArticleComponent,
  argTypes: {
    children: {
      control: {
        type: 'text',
      },
      description: 'The contents.',
      type: {
        name: 'string',
        required: true,
      },
    },
  },
} as ComponentMeta<typeof ArticleComponent>;

const Template: ComponentStory<typeof ArticleComponent> = (args) => (
  <ArticleComponent {...args} />
);

/**
 * Layout Stories - Article
 */
export const Article = Template.bind({});
Article.args = {
  children: 'The article content.',
};