From afb1018ba013b66bce471d1071534e2241c38bc7 Mon Sep 17 00:00:00 2001 From: seocylucky Date: Wed, 21 Aug 2024 17:12:34 +0900 Subject: [PATCH 01/16] =?UTF-8?q?feat:=20Textarea=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EA=B5=AC=ED=98=84=20(#146)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Textarea/Textarea.mdx | 119 +++++++++++++++++++ src/components/Textarea/Textarea.stories.tsx | 119 +++++++++++++++++++ src/components/Textarea/Textarea.style.ts | 56 +++++++++ src/components/Textarea/Textarea.tsx | 46 +++++++ src/components/Textarea/Textarea.type.ts | 11 ++ src/components/Textarea/index.ts | 2 + src/components/index.ts | 15 +++ 7 files changed, 368 insertions(+) create mode 100644 src/components/Textarea/Textarea.mdx create mode 100644 src/components/Textarea/Textarea.stories.tsx create mode 100644 src/components/Textarea/Textarea.style.ts create mode 100644 src/components/Textarea/Textarea.tsx create mode 100644 src/components/Textarea/Textarea.type.ts create mode 100644 src/components/Textarea/index.ts diff --git a/src/components/Textarea/Textarea.mdx b/src/components/Textarea/Textarea.mdx new file mode 100644 index 0000000..b5a7ff8 --- /dev/null +++ b/src/components/Textarea/Textarea.mdx @@ -0,0 +1,119 @@ +import { Canvas, Meta, Controls } from '@storybook/blocks'; +import * as TextareaStories from './Textarea.stories'; +import { Textarea } from './Textarea'; +import React from 'react'; + + + +# Textarea + +사용자가 텍스트를 입력하는 필드로, 여러 줄의 텍스트 입력이 필요한 경우 사용됩니다. 다양한 상태와 속성을 지원하여 사용자 경험을 향상시킬 수 있습니다. + + + + +
+
+ +## 사용법 + +Textarea의 기본 사용법입니다. + +필수 프로퍼티인 `width`와 `height`를 사용하여 Textarea의 크기를 설정해주세요. + +```tsx +import { Textarea } from '@yourssu/design-system-react'; +``` + +```tsx +