Date and time

Date Range Picker

Date Range Pickers are essential for displaying date-based information clearly and enhancing user interaction with precise date selections.

Basic

A range calendar displays one or more date grids and allows users to select a range of dates in a single interaction.

Loading...

Installation

npx shadcn@latest add @intentui/date-range-picker

Composed components

When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.

This component comes packed with several components to enhance functionality and provide a seamless experience.

Manual installation

npm i react-aria-components @intentui/icons

Validation

Ensure that the date range picker is properly filled out by using the isRequired prop.

Loading...

Custom validation

Use the validate function to implement custom validation rules. It evaluates the current date range and returns error messages if the value doesn't meet your criteria.

Loading...

Visible duration

You can control the duration of the visible date range by using the visibleDuration prop. It accepts an object with the following properties:

  • years: The number of years to add or subtract.
  • months: The number of months to add or subtract.
  • weeks: The number of weeks to add or subtract.
  • days: The number of days to add or subtract.

Learn more about the visible duration in the rac documentation.

Loading...

Controlled

Take control of your date range picker by passing a value prop to manage the selected date range.

Loading...

Disabled

When the date range picker is disabled, it becomes non-interactive and is visually represented in a disabled state.

Loading...
Unlock the full power of
Design Intent UI
Build modern web apps faster with 350+ blocks and polished templates crafted for professionals.
Explore