-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b52167f
commit 780ee2b
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import '../src/app/globals.css' | ||
import type { Preview } from "@storybook/react"; | ||
|
||
const preview: Preview = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import Text from './Text'; | ||
|
||
const meta = { | ||
title: 'Shared/Text', | ||
component: Text, | ||
parameters: { | ||
}, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
color: { control: 'color' }, | ||
}, | ||
} satisfies Meta<typeof Text>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const t1: Story = { | ||
args: { | ||
typography: 't1', | ||
color: 'primary', | ||
children: '안녕하세요', | ||
}, | ||
}; | ||
|
||
export const t3: Story = { | ||
args: { | ||
typography: 't3', | ||
color: 'secondary', | ||
children: '워시피디아', | ||
}, | ||
}; | ||
|
||
export const t7: Story = { | ||
args: { | ||
typography: 't7', | ||
color: 'red', | ||
children: '패스트캠퍼스', | ||
}, | ||
}; |