Date Picker

The ArcadiaDatePicker component wraps a native <input type="date"> with label, placeholder, and date range constraints.

Basic Usage

<ArcadiaDatePicker @bind-Value="selectedDate" Label="Start Date" />

<ArcadiaDatePicker @bind-Value="birthDate"
                   Label="Birth Date"
                   Min="@(new DateTime(1900, 1, 1))"
                   Max="@DateTime.Today" />

Parameters

ParameterTypeDefaultDescription
ValueDateTime?nullThe selected date value. Supports two-way binding.
MinDateTime?nullMinimum selectable date.
MaxDateTime?nullMaximum selectable date.
Placeholderstring"Select date..."Placeholder text when no date is selected.
Formatstring"yyyy-MM-dd"Internal value format sent to the native date input.
DisabledboolfalseWhether the date picker is disabled.
Labelstring?nullLabel text displayed above the input.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Events

EventTypeDescription
ValueChangedEventCallback<DateTime?>Fired when the selected date changes.

Accessibility

  • The <label> element is linked to the input via for/id.
  • Uses aria-label from the Label or Placeholder parameter.
  • Native date input provides built-in keyboard and screen reader support.