본문으로 건너뛰기

구성 요소

텍스트 영역

행 수에 따라 높이가 늘어나는 여러 줄 텍스트 필드입니다.

사용법

기본

HTML
<bs:bsui-textarea rows="4" placeholder="Release notes" />

라벨이 있는 필드

위에는 라벨, 아래에는 도움말 텍스트를 배치해 다른 필드와 같은 구조를 갖춥니다.

Markdown is supported.
HTML
<bs:bsui-field>
  <bs:bsui-field-label text="Release notes" />
  <bs:bsui-textarea name="notes" rows="5" placeholder="What changed in this release?" />
  <bs:bsui-field-description text="Markdown is supported." />
</bs:bsui-field>

잘못된 상태

오류 색상은 입력란과 같은 방식으로 텍스트 영역 테두리에도 적용됩니다.

Let us know before you cancel.
HTML
<bs:bsui-field invalid="true">
  <bs:bsui-field-label text="Why are you leaving?" />
  <bs:bsui-textarea rows="4" placeholder="Tell us what went wrong." />
  <bs:bsui-field-error text="Let us know before you cancel." />
</bs:bsui-field>

비활성화됨

컨트롤은 플레이스홀더를 유지하지만 포커스를 받거나 편집할 수 없습니다.

HTML
<bs:bsui-textarea rows="3" disabled="true" placeholder="Notes are locked while the release is publishing." />

속성

속성유형기본값
placeholder text —
rows number 4
name text —
disabled toggle false
onChange text —
value text —