mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2026-01-08 12:34:15 +00:00
chore: lint with tabwidth: 2
This commit is contained in:
@@ -3,121 +3,121 @@ import type { Meta, StoryObj } from '@storybook/react'
|
||||
import { Typography } from './'
|
||||
|
||||
const meta = {
|
||||
argTypes: {
|
||||
variant: {
|
||||
control: { type: 'radio' },
|
||||
options: [
|
||||
'large',
|
||||
'h1',
|
||||
'h2',
|
||||
'h3',
|
||||
'body1',
|
||||
'body2',
|
||||
'subtitle1',
|
||||
'subtitle2',
|
||||
'caption',
|
||||
'overline',
|
||||
'link1',
|
||||
'link2',
|
||||
'error',
|
||||
],
|
||||
},
|
||||
argTypes: {
|
||||
variant: {
|
||||
control: { type: 'radio' },
|
||||
options: [
|
||||
'large',
|
||||
'h1',
|
||||
'h2',
|
||||
'h3',
|
||||
'body1',
|
||||
'body2',
|
||||
'subtitle1',
|
||||
'subtitle2',
|
||||
'caption',
|
||||
'overline',
|
||||
'link1',
|
||||
'link2',
|
||||
'error',
|
||||
],
|
||||
},
|
||||
component: Typography,
|
||||
tags: ['autodocs'],
|
||||
title: 'Components/Typography',
|
||||
},
|
||||
component: Typography,
|
||||
tags: ['autodocs'],
|
||||
title: 'Components/Typography',
|
||||
} satisfies Meta<typeof Typography>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Large: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'large',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'large',
|
||||
},
|
||||
}
|
||||
|
||||
export const H1: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'h1',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'h1',
|
||||
},
|
||||
}
|
||||
|
||||
export const H2: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'h2',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'h2',
|
||||
},
|
||||
}
|
||||
|
||||
export const H3: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'h3',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'h3',
|
||||
},
|
||||
}
|
||||
|
||||
export const Body1: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'body1',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'body1',
|
||||
},
|
||||
}
|
||||
|
||||
export const Body2: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'body2',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'body2',
|
||||
},
|
||||
}
|
||||
|
||||
export const Subtitle1: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'subtitle1',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'subtitle1',
|
||||
},
|
||||
}
|
||||
|
||||
export const Subtitle2: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'subtitle2',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'subtitle2',
|
||||
},
|
||||
}
|
||||
|
||||
export const Caption: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'caption',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'caption',
|
||||
},
|
||||
}
|
||||
|
||||
export const Overline: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'overline',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'overline',
|
||||
},
|
||||
}
|
||||
|
||||
export const Link1: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'link1',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'link1',
|
||||
},
|
||||
}
|
||||
|
||||
export const Link2: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'link2',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'link2',
|
||||
},
|
||||
}
|
||||
|
||||
export const Error: Story = {
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'error',
|
||||
},
|
||||
args: {
|
||||
children: 'Card content',
|
||||
variant: 'error',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user