Components

DhDateInput

Native <input type="date"> with calendar icon, min/max as ISO string or Date, and the input-family floating-label / supporting-text / isError / isSuccess pattern.

Floating label

<DhDateInput bind:value={bday} label="Date of birth" />

Validation states

<DhDateInput
  bind:value={date}
  label="Event date"
  isError={Boolean(dateError)}
  supportingText={dateError || 'Must be in 2024 or later.'}
/>

Min / max with Date object

Pick a date within the next three months.

<DhDateInput
  bind:value={meeting}
  label="Meeting (next 90 days)"
  min={today}
  max={threeMonthsFromNow}
  supportingText="Pick a date within the next three months."
/>

States

<DhDateInput value="2026-06-15" label="Filled" />
<DhDateInput label="Readonly" readonly bind:value={fixed} />
<DhDateInput label="Disabled" disabled />
<DhDateInput label="No start icon" showStartIcon={false} />