Date Picker
Allow users to select dates or date ranges via a calendar overlay. Perfect for filtering data or scheduling events.
Basic Usage
A simple date picker input that opens a calendar on click.
blade
<neura::date-picker />
Natural Language
`natural` puts the calendar's natural-language field at the top of the popup: type “next Friday”, “du 3 au 7 mars” or, with `time`,
“tomorrow at 3pm” — the date and the time are both filled in. `natural-placeholder` sets the hint.
blade
<neura::date-picker natural wire:model="day" />
<neura::date-picker natural time wire:model="meetingAt" />
<!-- “tomorrow at 3pm” → '2026-11-07T15:00' -->
With Label and Description
Wrap it in a field component to add labels and descriptions.
blade
Event Date
Pick a date for your upcoming event.
<neura::field>
<neura::label>Event Date</neura::label>
<neura::date-picker placeholder="Select an event date" />
<neura::description>Pick a date for your upcoming event.</neura::description>
</neura::field>
Date Constraints
You can restrict the selection using `minDate`, `maxDate`, and `disabledDates`.
blade
Appointment (Next 7 days only)
<neura::date-picker
:min-date="now()->toDateString()"
:max-date="now()->addDays(7)->toDateString()"
:disabled-dates="[now()->addDays(2)->toDateString()]"
/>
Date and Time
Add `time` to pick a time in the same popup: the calendar on one side, hours and minutes on the other.
The value is a local `YYYY-MM-DDTHH:mm` string. The clock follows the locale (12 hours with AM / PM in English, 24 hours in French) unless `hour-cycle` sets it.
blade
Meeting
Delivery slot (24 hours, every 15 minutes)
<neura::date-picker time wire:model="meetingAt" />
<!-- $meetingAt will be '2026-10-27T14:30' -->
<neura::date-picker
time
:hour-cycle="24"
:minute-step="15"
default-time="09:00"
:min-date="now()->toDateString() . 'T08:00'"
:max-date="now()->addDays(14)->toDateString() . 'T18:00'"
/>
Picking a date first fills in `default-time`, or the current time rounded up to the minute step. Picking a time first lands on today.
A `min-date` or `max-date` that carries a time also limits the hours of its own day. `time` applies to single dates; `range` and `multiple` stay date-only.
Range Selection
Enable range selection to allow users to pick a start and end date.
blade
Vacation Period
<neura::date-picker range placeholder="Select period" />
Multiple Selection
Allow users to pick multiple individual dates.
blade
Available Dates
<neura::date-picker multiple placeholder="Select dates" />
Livewire Integration
The date picker works seamlessly with Livewire `wire:model`.
Blade
<!-- Single Date -->
<neura::date-picker wire:model="date" />
<!-- Date and Time -->
<neura::date-picker time wire:model="startsAt" />
<!-- $startsAt will be '2026-10-27T14:30' -->
<!-- Date Range -->
<neura::date-picker range wire:model="dateRange" />
<!-- $dateRange will be ['start' => '...', 'end' => '...'] -->
<!-- Multiple Dates -->
<neura::date-picker multiple wire:model="selectedDates" />
<!-- $selectedDates will be ['...', '...'] -->
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | null | Name attribute for form submission |
| value | string|array | null | Initial value |
| placeholder | string | 'Select date' / 'Select date and time' | Input placeholder text |
| minDate | string | null | Minimum selectable date (YYYY-MM-DD). With `time`, YYYY-MM-DDTHH:mm also limits that day's hours |
| maxDate | string | null | Maximum selectable date (YYYY-MM-DD). With `time`, YYYY-MM-DDTHH:mm also limits that day's hours |
| disabled | boolean | false | Disable the input |
| range | boolean | false | Enable range selection mode |
| multiple | boolean | false | Enable multiple selection mode |
| time | boolean | false | Pick a time next to the calendar. The value becomes YYYY-MM-DDTHH:mm (single dates only) |
| hourCycle | 12|24|null | null | Clock format; null follows the locale |
| minuteStep | int | 5 | Minutes listed: 1, 5, 10, 15 or 30 |
| defaultTime | string | null | HH:mm used when a date is picked first; null takes the current time rounded up to the step |