다른 컴포넌트 보기

COMPONENT / 폼과 입력

Textarea

여러 줄의 생각을 담는 입력.

LIVE PREVIEWWEB
PLAYGROUND

사용 코드

import { useState } from 'react';
import * as W from 'woosign-system';

// ThemeProvider와 ToastProvider 안에서 렌더링하세요.
export function Example() {
  const [input, setInput] = useState('');
  return (
    <W.Textarea
      value={input}
      onChangeText={setInput}
      placeholder="오늘의 생각을 적어보세요."
      disabled={false}
      inputProps={{ 'aria-label': '오늘의 생각' }}
    />
  );
}
PropType필수
variantInputVariant—
sizeInputSize—
placeholderstring—
valuestring—
defaultValuestring—
disabledboolean—
readOnlyboolean—
onChangeText(text: string) => void—
onFocus() => void—
onBlur() => void—
onSubmitEditing() => void—
fullWidthboolean—
leftIconReactNode—
rightIconReactNode—
autoCapitalize'none' | 'sentences' | 'words' | 'characters'—
autoCorrectboolean—
autoFocusboolean—
keyboardType| 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'decimal-pad' | 'url'—
returnKeyType'done' | 'go' | 'next' | 'search' | 'send'—
maxLengthnumber—
numberOfLinesnumber—

공통 API 기준입니다. 플랫폼별 style, className 및 세부 타입은 타입 정의에서 확인하세요.

← 전체 컴포넌트로 돌아가기