Skip to content

Props und Events

Props

PropTypStandardBeschreibung
modelValuestring''Ausgewahlter Wert (ISO-Format)
type'date' | 'datetime-local' | 'time''date'Auswahl-Modus
displayFormatstring--Anzeigeformat (z.B. DD.MM.YYYY)
placeholderstringSprach-StandardPlatzhaltertext
disabledbooleanfalseAuswahl deaktivieren
requiredbooleanfalseAls erforderlich markieren
labelstring--Beschriftung uber dem Ausloser
langstring'tr'Sprachcode
minstring--Fruhestes Datum (YYYY-MM-DD)
maxstring--Spatestes Datum (YYYY-MM-DD)
rangebooleanfalseDatumsbereich aktivieren
hourFormat'24' | '12''24'Zeitformat
minuteStepnumber1Minuten-Schrittweite
errorstring--Fehlermeldung
hintstring--Hinweistext

Events

EventPayloadBeschreibung
update:modelValuestringWird bei Auswahl ausgelost

Format-Token

TokenAusgabeBeispiel
YYYY4-stelliges Jahr2026
MM2-stelliger Monat02
DD2-stelliger Tag14
MMMMVollstandiger MonatsnameFebruar
HH2-stellige Stunde09
mm2-stellige Minute30

CSS-Variablen

Uberschreiben Sie diese Variablen zur Anpassung:

css
:root {
  --bt-primary: #8b5cf6;
  --bt-text: #f8fafc;
  --bt-bg: #1e1e2e;
  --bt-popup-bg: #16161f;
  --bt-border: #2a2a3d;
}

Helles Theme

css
[data-theme="light"],
.light {
  --bt-text: #1e293b;
  --bt-bg: #ffffff;
  --bt-popup-bg: #f8fafc;
  --bt-border: #e2e8f0;
}

Released under the MIT License.