structyl

Date Range Picker

stable

Pick a start and end date from a popover calendar.

Basic usage

Examples

Controlled range

Track the selected date range externally for form submission.

MUI-style range field

Use tuple values for MUI parity or the Structyl range object for compound usage.

Range closes after both start and end dates are selected.

Preset shortcuts

Use built-in shortcut buttons or provide your own shortcut ranges.

Shortcut selections call onChange and onAccept with source='shortcut'.

Date range field

Use DateRangePicker for reporting windows, bookings and project timelines.

Features

  • MUI-style tuple values.
  • Range selection.
  • Popover-anchored.

Installation

bash
pnpm dlx structyl add date-range-picker

API Reference

Date Range Picker API reference

Full props, types, defaults, and all 12 parts.

View API
Date Range Picker | structyl