reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
Overview205Core74Shells99Blocks32
Textarea
reopt designreopt design

A design system for the AI era

  • Docs
  • Pricing
  • Releases
  • About
  • Contact
  • Terms of Service
  • Privacy Policy

reopt Inc.Business registration no. 217-88-02453contact@reopt.ai

© 2026 reopt Inc. All rights reserved.

Textarea

Component

Enter multiline text with the same label, error, and hint API as Input.

input
Related docs
bun add @reopt-ai/opt-ui
Install and import
bash
bun add @reopt-ai/opt-ui
tsx
import { Textarea } from "@reopt-ai/opt-ui";

Live preview

Change the width and theme, then interact with the components.

100%

Basic

With Hint

500자 이내로 작성하세요

Error State

필수 입력 항목입니다

Resize Options

Usage guidance

Best practices

  • Use for free-form text across multiple lines, with label and hint explaining purpose and expected length. Set the initial height with rows.

Usage to avoid

  • Use an appropriately sized input for short values, and allow vertical resizing unless there is a clear reason to prevent it.

Usage examples

Description input

Textarea

PropTypeDefaultDescription
labelstring—입력 필드 레이블
errorstring—에러 메시지
hintstring—힌트 텍스트
fullWidthbooleanfalse전체 너비 사용
resize"none" | "vertical" | "horizontal" | "both""vertical"크기 조절 방향
rowsnumber4표시 줄 수

컴포넌트 의존 관계

깊이
▲ USED BY (2)save-query-dialogitem-detailTextarea
View test results

테스트 커버리지

2026년 7월 9일9/9 통과
9성공
0실패
9전체
  • textbox role을 렌더링한다
  • label을 렌더링하고 연결한다
  • error 메시지를 표시한다
  • hint 텍스트를 표시한다
  • label 없이 aria-label만 있어도 error를 aria-describedby로 연결한다
  • 타이핑이 가능하다
  • required prop이 RequiredMark를 표시한다
  • size=sm 스타일을 적용한다
  • size=lg 스타일을 적용한다

Blocks that use this component

opt-ui

ItemDetail

Blocks

Present an item or product with tags, author information, content, and reviews.

Related components

opt-ui

Select

Core

Build a dropdown selection with Root, Label, Trigger, Popover, and Item components.

opt-ui

Combobox

Core

Build autocomplete search with an input, popover, items, groups, group labels, and an empty state.

opt-ui

Button

Core

Use accessible buttons with primary, secondary, ghost, and danger variants, three sizes, icons, loading, and aria-busy states.

opt-ui

Input

Core

Use a standalone text input with labels, errors, hints, and icons.

opt-ui

Switch

Core

Toggle a setting with three sizes and explicit accessible associations for labels and descriptions.

opt-ui

Checkbox

Core

Use labeled checkboxes with descriptions, groups, and an indeterminate state synchronized to the DOM property.

PreviousSkeletonNextAvatar