Przejdź do treści

Komponenty

Pole daty

Maskowane pole do wpisywania dat bez selektora.

Użycie

Podstawowy

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

Pole z etykietą

Z etykietą i tekstem pomocy, tak jak w prawdziwym formularzu.

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>

Zakres dat

Dwa pola obok siebie, każde wysyłane pod własną nazwą.

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>

Wyłączone

Przycisk wywołujący i przycisk kalendarza przestają reagować.

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

Atrybuty

AtrybutTypDomyślnie
name text —
placeholder text Pick a date
disabled toggle false
nameAlt text —
onChange text —