Command Palette

Search for a command to run...

Docs
Date Range Picker

Date Range Picker

A date range picker with dual calendar view

Loading...

Installation

Features

  • Dual Calendar: View two months side-by-side
  • Range Selection: Select start and end dates visually
  • Date Restrictions: Set min/max boundaries
  • Formatted Display: Shows selected range in readable format
  • Custom Placeholder: Configurable placeholder text
  • TypeScript Support: Fully typed with DateRange interface

Props

PropTypeDefaultDescription
defaultFromDate-Initial start date
defaultToDate-Initial end date
onChange(range: DateRange | undefined) => void-Callback when range changes
disabledbooleanfalseDisable the picker
minDateDate-Minimum selectable date
maxDateDate-Maximum selectable date
placeholderstring"Pick a date range"Placeholder text
classNamestring-Additional CSS classes