diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-22 18:46:48 +0200 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-22 18:46:48 +0200 | 
| commit | 5a6584777e42e6e3e55294d357cb0adafe2853e7 (patch) | |
| tree | 121dd5fbadf395a5f281fd99bf35c7be25ebe13a /src/components/templates/layout/layout.stories.tsx | |
| parent | 947a06bfdfdc5bca62c27fa2ee27f0ab9fefa0ea (diff) | |
chore: add a Layout component
It defines the different components used by all other layouts.
Diffstat (limited to 'src/components/templates/layout/layout.stories.tsx')
| -rw-r--r-- | src/components/templates/layout/layout.stories.tsx | 57 | 
1 files changed, 57 insertions, 0 deletions
| diff --git a/src/components/templates/layout/layout.stories.tsx b/src/components/templates/layout/layout.stories.tsx new file mode 100644 index 0000000..f3579e3 --- /dev/null +++ b/src/components/templates/layout/layout.stories.tsx @@ -0,0 +1,57 @@ +import { ComponentMeta, ComponentStory } from '@storybook/react'; +import { IntlProvider } from 'react-intl'; +import LayoutComponent from './layout'; + +/** + * Layout - Storybook Meta + */ +export default { +  title: 'Templates/LayoutBase', +  component: LayoutComponent, +  argTypes: { +    children: { +      control: { +        type: 'text', +      }, +      description: 'The article content.', +      type: { +        name: 'string', +        required: true, +      }, +    }, +    className: { +      control: { +        type: 'text', +      }, +      description: 'Set additional classnames to the article element.', +      table: { +        category: 'Styles', +      }, +      type: { +        name: 'string', +        required: false, +      }, +    }, +  }, +  decorators: [ +    (Story) => ( +      <IntlProvider locale="en"> +        <div id="__next"> +          <Story /> +        </div> +      </IntlProvider> +    ), +  ], +  parameters: { +    layout: 'fullscreen', +  }, +} as ComponentMeta<typeof LayoutComponent>; + +const Template: ComponentStory<typeof LayoutComponent> = (args) => ( +  <LayoutComponent {...args} /> +); + +/** + * Layout Stories - Default + */ +export const LayoutBase = Template.bind({}); | 
