본문으로 건너뛰기

구성 요소

날짜 입력란

날짜 선택기 없이 날짜를 입력하는 마스크 필드입니다.

사용법

기본

HTML
<bs:bsui-date-input placeholder="YYYY-MM-DD" />

레이블이 있는 필드

실제 폼에서처럼 레이블과 도움말을 함께 배치했습니다.

Bookings open the day after this date.
HTML
<bs:bsui-field>
  <bs:bsui-field-label text="Start date" />
  <bs:bsui-date-input name="start_date" placeholder="Pick a start date" />
  <bs:bsui-field-description text="Bookings open the day after this date." />
</bs:bsui-field>

날짜 범위

두 입력란을 나란히 배치하고 각각 고유한 이름으로 값을 전송합니다.

HTML
<bs:bsui-stack direction="row" gap="4" align="start">
  <bs:bsui-field>
    <bs:bsui-field-label text="From" />
    <bs:bsui-date-input name="from" placeholder="Check in" />
  </bs:bsui-field>
  <bs:bsui-field>
    <bs:bsui-field-label text="To" />
    <bs:bsui-date-input name="to" placeholder="Check out" />
  </bs:bsui-field>
</bs:bsui-stack>

비활성화됨

트리거와 달력 버튼이 모두 응답하지 않습니다.

HTML
<bs:bsui-date-input placeholder="Locked until renewal" disabled="true" />

속성

속성유형기본값
name text —
placeholder text Pick a date
disabled toggle false
nameAlt text —
onChange text —