Skip to content

Commit

Permalink
feat(stories): add stories for Quote
Browse files Browse the repository at this point in the history
Add new stories for Quote component

Resolves #76

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
  • Loading branch information
niloysikdar committed Aug 7, 2022
1 parent b19cac1 commit 008abb3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/Quote/Quote.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';

import { Quote } from './Quote';

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

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

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

Default.args = {
children: 'This is a Text Quote',
};

0 comments on commit 008abb3

Please sign in to comment.