Skip to content

Commit

Permalink
test: Text 컴포넌트 스토리북 제작
Browse files Browse the repository at this point in the history
  • Loading branch information
bottlewook committed Jan 3, 2024
1 parent b52167f commit 780ee2b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .storybook/preview.ts
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 = {
Expand Down
41 changes: 41 additions & 0 deletions src/components/query/shared/text/Text.stories.ts
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: '패스트캠퍼스',
},
};

0 comments on commit 780ee2b

Please sign in to comment.