mirror of
https://github.com/ruisaraiva19/favycon.git
synced 2026-09-12 19:51:07 +05:00
* feat: upgrade dependencies * chore: update linter and CI workflows * chore: upgrade browserslist
38 lines
804 B
TypeScript
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',
|
|
}
|