Skip to content

Commit

Permalink
Merge pull request #45 from fayez-baig/develop
Browse files Browse the repository at this point in the history
fix: Develop to master
  • Loading branch information
fayez-baig committed Dec 9, 2020
2 parents d625198 + 76c9ab6 commit 2b17582
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/Elements/Title/Title.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { Story } from '@storybook/react/types-6-0';
import Title from './Title';
import { TitleProps } from './types';
import SubTitle from '../SubTitle/SubTitle';
const sizeValues = [1, 2, 3, 4, 5, 6];

export default {
Expand Down Expand Up @@ -36,3 +37,16 @@ Default.args = {
children: 'Title',
fontSize: 3
};

const defaultTitleSpacedTemplate: Story<TitleProps> = args => (
<>
<Title {...args}>Title</Title>
<SubTitle>SubTitle</SubTitle>
</>
);

export const TitleSpaced = defaultTitleSpacedTemplate.bind({});
TitleSpaced.args = {
fontSize: 3,
isSpaced: true
};

0 comments on commit 2b17582

Please sign in to comment.