Skip to content

Commit

Permalink
#314 feat: 스토리북 테스트 컴포넌트 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
YelynnOh committed Mar 15, 2024
1 parent 80f8230 commit f89b03a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/test/Test/Test.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react';
import { Meta, StoryObj } from '@storybook/react';

import TestButton from '@components/test/Test/index';

const meta: Meta<typeof TestButton> = {
title: 'Components/TestButton',
component: TestButton,
tags: ['autodocs'],
};

export default meta;

export const Basic: StoryObj<typeof TestButton> = {
render: () => <TestButton />,
};
3 changes: 3 additions & 0 deletions src/components/test/Test/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function TestButton() {
return <button type="button">하이요</button>;
}

0 comments on commit f89b03a

Please sign in to comment.