Pickers & inputs
JS behaviour
Date-range picker
Two months side by side: click a start and an end and the range previews under the pointer; presets, and the Jalali calendar for Persian, Gregorian elsewhere.
Real scenarios
The component as it is used in a product — not a specimen grid.
Abbasi Hotel, Isfahan
Courtyard double room · breakfast included
3 nights
12,600,000 IRR
Store traffic
Presets cover the usual questions; the grid answers the rest.
- Visitors
- 18,240 +12% on last period
- Orders
- 642 +4% on last period
- Returning
- 3,150
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| value / wire:model | array | [start, end] | ['start' => 'YYYY-MM-DD', 'end' => …] — always ISO days, whichever calendar shows them. |
| calendar | string | locale | persian (Jalali) or gregory; follows the locale by default. |
| presets | array | all six | today, yesterday, last7, last30, thisMonth, lastMonth or your own ranges; [] hides them. |
| min / max / months | string · int | null · 2 | The pickable bounds and how many months show (1 or 2). |
Snippet
<x-nx::date-range-picker name="stay" label="Stay" min="2026-10-03"
wire:model.live="stay" />