favycon/components/typography/index.stories.tsx
Rui Saraiva 785563a71c
feat: upgrade dependencies (#480)
* feat: upgrade dependencies

* chore: update linter and CI workflows

* chore: upgrade browserslist
2021-12-04 18:32:53 +00:00

38 lines
804 B
TypeScript

import { ComponentMeta, Story } from '@storybook/react'
import { Typography, TypographyProps } from '.'
export default {
title: 'Typography',
component: Typography,
argTypes: {
variant: {
control: {
type: 'select',
},
options: ['h1', 'smallBody', 'regularBody', 'mediumBody', 'largeBody', 'footer', 'superscript'],
},
weight: {
control: {
type: 'select',
},
options: ['regular', 'medium', 'semiBold', 'bold'],
},
color: {
control: {
type: 'select',
},
options: ['black', 'gray', 'white'],
},
},
} as ComponentMeta<typeof Typography>
const Template: Story<TypographyProps> = (args) => <Typography {...args} />
export const Desktop = Template.bind({})
Desktop.args = {
variant: 'h1',
weight: 'regular',
color: 'black',
children: 'Some text',
}