Skip to content

Commit

Permalink
docs(storybook): stories for section
Browse files Browse the repository at this point in the history
add stories for section component

resolves #39

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
  • Loading branch information
niloysikdar committed Jun 30, 2022
1 parent 2541664 commit 2c77ed7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/components/Section/Section.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { ComponentStory, ComponentMeta } from '@storybook/react';

import { Email } from '../Email/Email';
import { Column } from '../Column/Column';
import { Section } from './Section';

export default {
component: Section,
} as ComponentMeta<typeof Section>;

//“template” of how args map to rendering
const Template: ComponentStory<typeof Section> = (args) => (
<Email>
<Column>
<Section {...args} />
</Column>
</Email>
);

export const Default = Template.bind({});

Default.args = {
children: <td style={{ fontSize: '30px', color: 'red' }}>This is a new section</td>,
};

0 comments on commit 2c77ed7

Please sign in to comment.