Forms

Date picker

A form field for a date, several dates or a range of dates: a button that shows the chosen date and opens a calendar in a popover, with optional presets, typed dates and Apply / Cancel buttons. Use it inside forms; when the calendar itself is the interface, such as a booking page, use the calendar.

Blade

A labelled field with a calendar icon, "Select date" as placeholder and a chevron at the end. Clicking it opens the current month in a popover, with a Clear button at the bottom. Clicking a day closes the popover and shows the date in the field, formatted for the locale (Oct 14, 2026). The value is kept in a hidden input named date, as 2026-10-14, so it is sent with the form.

Binding to Livewire #

The field shows the 15th, and the popover opens on October with it selected and focused. Clicking the 20th sets $date to '2026-10-20'; clicking the selected day again, or Clear, sets it to ''. A value set on the server is shown by the field.

Date: "2026-10-15"
Blade

Range with presets #

The popover has a column of presets on the left (Today, Yesterday, This week, Last 7 days... Last year) next to the calendar. Clicking Last 7 days sets $period to '2026-10-08/2026-10-14' and closes the popover; that preset stays highlighted while the range matches it. Picking by hand takes two clicks: the first marks the start without writing anything, and the second writes '2026-10-12/2026-10-15' and closes the popover. The field then shows Oct 12 – 15, 2026.

Period: null
Blade

Typing the date #

The button becomes a text input masked in the locale's date order and separator (dd/mm/yyyy in pt_BR, mm/dd/yyyy in en, dd.mm.yyyy in de). As soon as a whole valid date is typed, it is selected and $birthDate is set; Enter closes the popover. Text that is not a valid date goes back to the current value when the user presses Enter or leaves the input, and an emptied input clears the date. With range the mask holds two dates, start – end, applied together.

Date: null
Blade

Confirming a stay #

Two months side by side. Days before today and the booked dates are faded and cannot be clicked, and a range across a booked date is not accepted: the second click starts a new range instead. With confirm the popover has Cancel and Apply buttons and stays open after the range is complete; $stay is set only on Apply ('2026-10-24/2026-10-26'). Cancel, Escape or a click outside discard the choice.

Stay: null
Blade

A DateRange property #

A property typed as DateRange receives the range as an object, which also keeps the chosen preset ($period->preset()).

Period: 2026-11-30/2026-12-06 (last7Days)
Blade

Native date input #

inputs adds a native date input under the calendar, to type the date or pick it with the browser's own picker.

Blade

Minimum range #

With range, min-range sets the fewest days a range may span, counting both ends: a shorter second click starts a new range.

Blade

Several dates #

With multiple the popover stays open while picking and the value is a comma-separated list of dates.

Holidays:
Blade

Calendar options #

today adds a button to jump to the current month, selectable-header turns the title into month and year selects, week-numbers adds ISO weeks and format sets how the date is shown.

Blade

Sizes and states #

size scales the field; disabled blocks it and readonly shows the value without opening. clearable set to false hides the Clear button.

Blade

Picked event #

picked fires on the tag with { value } when the user picks a day; here it is written to a Livewire property through $wire.

Last picked:
Blade

Customization #

Classes go to the box around the button; prefixed attributes reach the button (trigger:), the calendar (calendar:day:) and the footer buttons (apply:label).

Blade

Reference

Date picker

Prop Type Default Description
value string | array | date null The initial selection, as Y-m-d. With multiple, an array or a comma-separated string; with range, start/end, ['start' => ..., 'end' => ...] or a DateRange. Dates and Carbon instances are accepted. Old input from a failed submit takes precedence. Inside Livewire use wire:model instead.
multiple bool false Lets the user select several days. The popover stays open while they pick, and the field lists the dates separated by commas.
range bool false Selects a range: the first click sets the start, the second the end.
trigger string button input replaces the button with a text input where the date can be typed. With multiple the input is read-only.
format string medium How the date is shown in the field: full, long, medium or short, as the browser's date styles. Any other value falls back to medium with a console warning.
presets bool | string false With range, adds a column of preset ranges. true shows Today, Yesterday, This week, Last 7 days, Last 14 days, Last 30 days, This month, Last month, This year and Last year. A string lists the presets to show, separated by spaces ("today last7Days thisMonth"); unknown names are ignored.
inputs bool false Adds native date inputs under the calendar: one, or start and end with range. Not shown with multiple.
confirm bool false Adds Cancel and Apply buttons: the selection is written only on Apply.
clearable bool | string null The Clear button at the bottom of the popover is shown unless this is false. A string is its text.
months int 1 How many consecutive months the popover shows side by side.
min string | date null The earliest day that can be picked.
max string | date null The latest day that can be picked.
unavailable string | array null Days that cannot be picked, as an array or a comma-separated string. A range cannot include them.
minRange int null With range, the fewest days a range may span, counting both ends.
maxRange int null With range, the most days a range may span, counting both ends.
today bool false Adds a button that moves to the current month, or selects and focuses today when it is already shown (a second click keeps it selected).
selectableHeader bool false Replaces the month title with a month and a year select. Only with one month.
fixedWeeks bool false Always shows six weeks, so the popover does not change height between months.
startDay int from the locale The first day of the week, 0 (Sunday) to 6 (Saturday). By default the locale's; Sunday for he, ja, ko, lo, ml, or and th.
openTo string | date the current month The month shown when nothing is selected.
forceOpenTo bool false Opens on the openTo month every time, even when a date is selected.
weekNumbers bool false Adds a column with the ISO week number of each week.
locale string the app locale The language of the field text, the month and weekday names and the typing mask. Also sets the first day of the week.

Also accepts the field props and the field control props. The default placeholder is "Select date", the default icon is a calendar, and color also colors the selected days and the Apply button. disabled disables the field; with readonly it shows the value but does not open.

wire:model and x-model bind the selection as a string: 2026-10-14, 2026-10-01,2026-10-03 with multiple, or 2026-10-12/2026-10-15 with range; an empty selection is ''. Inside a Livewire component the picker is bound by itself to the public property named by name. A property typed as TALLKit\Livewire\DateRange receives the range as a date range object, and a chosen preset is kept in it too ($period->preset()). Its methods are listed in DateRange properties.

Events

Event Detail When
picked { value }, the new selection The user clicked a day, chose a preset, typed a complete date, emptied the typed input (trigger="input") or changed a native date input. The value is the date, or null when the selected day was clicked again or the typed input was emptied; the sorted array of dates with multiple; { start, end } with range, fired only when the range is complete. With confirm it fires on the click, before Apply. Not fired by Clear, nor when the value changes through wire:model or x-model.

Prefixes

Prefix Goes to
picker: The element that holds the picker's state, around the field and the popover.
trigger: The button, or the text input with trigger="input".
placeholder: The placeholder text inside the button.
formatted: The formatted date inside the button.
popover: The popover panel.
layout: The element holding the presets and the calendar.
presets: The column of presets.
preset: Each preset button.
calendar: The calendar. Its own prefixes work behind this one: calendar:day:class. See Calendar.
inputs: The bar with the native date inputs.
single-date: The native date input.
start-date: The native start date input, with range.
divider: The dash between the start and end inputs.
end-date: The native end date input, with range.
footer: The bar with the Clear, Cancel and Apply buttons.
clearable: The Clear button.
cancel: The Cancel button. cancel:label changes its text.
apply: The Apply button. apply:label changes its text.

Events

picked is dispatched on the hidden input that holds the value, which receives the tag's attributes, and does not bubble: listen on the tag itself.

With Alpine:

blade

Calling a Livewire action:

blade

Customization

class goes to the box around the button or the input; the other attributes go to the hidden input that holds the value. To reach an inner element, prefix the attribute (listed in the Reference above).

blade

Accessibility

The button is labelled by the field label and the shown date (without a label, give it trigger:aria-label), and has aria-haspopup="dialog", aria-expanded and aria-controls pointing to the popover, a role="dialog" named by the label (or "Calendar"). The active preset has aria-pressed. With trigger="input" the input has role="combobox". Inside the popover the calendar is a role="grid" per month, with each day named by its full date; see Calendar. Opening the popover moves focus to the selected day, else today.

Key Action
Enter, Space, Arrow Down, Arrow Up On the button, opens the popover.
Arrow Down, Arrow Up In the text input, opens the popover, or moves focus into it when it is already open.
Arrow keys, Home / End, Page Up / Page Down Inside the calendar, move focus between days and months as in the calendar.
Enter, Space Selects the focused day.
Enter In the text input, selects the typed date and closes the popover.
Escape Closes the popover and returns focus to the field.
Tab Moves through the popover's buttons; leaving the popover closes it.

Behavior notes

  • The text typed in trigger="input" always uses Gregorian years and Latin digits, so in locales such as th or fa the field shows 2026 while the calendar title keeps the local year.
  • A date object, or a value with a time and a Z or an offset (Eloquent's toJson() sends UTC), is read as the day in app.timezone, the same as on the server; a plain 2026-10-20 is taken as it is.
  • Inside Livewire, min, max, unavailable and disabled follow the component: a new min sent by the server applies on the next update.
  • Only a complete range is written to the bound value: the first click writes nothing, and closing the popover with only the first day picked goes back to the saved range. With confirm, nothing is written until Apply.
  • A single date closes the popover when picked, a range when its second day is picked; with multiple it stays open until Escape, a click outside or Tab leaves it. With confirm it only closes on Apply, Cancel, Escape or a click outside.
  • With range, a second click that would break minRange, maxRange or cross an unavailable day starts a new range from that day.
  • Presets that fall outside min / max or break minRange, maxRange or unavailable are disabled.
  • The popover opens on the month of the selection, then on openTo, then on the current month; forceOpenTo always uses openTo.
  • With trigger="input", clicking the input opens the popover and keeps the focus in the input, so the date can still be typed; Arrow Down moves it to the calendar. Focusing the input with Tab does not open it.
  • A value longer than the button, such as several dates with multiple, is cut with an ellipsis; the field does not grow with it.
  • The selection survives Livewire updates of the page, and a value changed on the server through wire:model is shown.
  • A form reset brings back the value the picker started with.

DateRange properties

A Livewire property typed as TALLKit\Livewire\DateRange holds the range as an object. DateRange extends Carbon\CarbonPeriod, so it can be iterated day by day.

The dates come from the browser, which can send any day from 0000-01-01 to 9999-12-31: validate period.start and period.end before iterating the range or querying with it.

php
php

Constructors:

Method Returns
DateRange::between($start, $end = null) The range from the start of $start to the end of $end, swapping them when reversed. Without $end, a single-day range. null when $start is empty or unreadable.
DateRange::custom($start, $end = null) The same as between(), with the custom preset.
DateRange::fromPreset(DateRangePreset $preset) The dates of a preset, with the preset kept. Throws for AllTime and Custom.
DateRange::allTime($start) From $start (at most today) to the end of today, with the allTime preset.
DateRange::today(), yesterday(), tomorrow(), thisWeek(), lastWeek(), nextWeek(), last7Days(), last14Days(), last30Days(), next7Days(), next14Days(), next30Days(), thisMonth(), lastMonth(), nextMonth(), last3Months(), last6Months(), next3Months(), next6Months(), thisQuarter(), lastQuarter(), nextQuarter(), thisYear(), lastYear(), nextYear(), yearToDate() fromPreset() with that preset. Weeks start on the locale's first day.

Methods:

Method Returns
start(), end() The start and end as Carbon, or null. A single-day range has no end.
bounds() [start, end], with the end of the start day when there is no end; ready for whereBetween().
preset() The TALLKit\Livewire\DateRangePreset the range came from, or null.
withPreset(?DateRangePreset $preset) The same range with that preset.
setStartDate($date), setEndDate($date) Change a date and drop the preset, since the dates are no longer the preset's.
hasStart(), hasEnd(), hasPreset(), isAllTime() Whether the range has a start, an end, a preset, or the allTime preset.

Cast to a string, a range is 2026-10-12/2026-10-15 (2026-10-12 without an end), the same format the picker binds; as JSON it is {"start": "2026-10-12", "end": "2026-10-15", "preset": "last7Days"}, without the keys that are null.

When the browser sends a preset with its dates, the browser's dates win, so the range does not move when the server's day differs or at midnight. Setting the preset to allTime from the browser ($wire.set('period.preset', 'allTime')) takes its start from a dateRangeAllTimeStart($property) method on the component when there is one, else from the current start:

php