syncfusion-react-daterangepicker

Implement the Syncfusion React DateRangePicker component for date range selection in React applications.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/haresh-sai06/HF_APP_Frontend --skill syncfusion-react-daterangepicker-haresh-sai06
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: syncfusion-react-daterangepicker
Source: https://github.com/haresh-sai06/HF_APP_Frontend/tree/main/.agents/skills/syncfusion-react-daterangepicker
Command: npx skills add https://github.com/haresh-sai06/HF_APP_Frontend --skill syncfusion-react-daterangepicker-haresh-sai06

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @syncfusion/ej2-react-calendars, @syncfusion/ej2-react-buttons, react-hook-form, formik, yup, and includes references (resource) components.

What problem does it solve? Selecting and validating date ranges in React apps requires handling start/end date state, min/max constraints, formatting, presets, and popup behavior. This Skill provides complete implementation guidance for the Syncfusion React DateRangePicker so you can wire up booking forms, reporting filters, and scheduling UIs without digging through scattered API docs. ## Core Features & Use Cases - Date Range Selection & Validation: Configure startDate/endDate, min/max bounds, minDays/maxDays span limits, strictMode, and preset ranges like Last 7 Days or This Month. - Formatting & Localization: Control display formats (M/d/yyyy, dd-MMM-yyyy), locale-based formatting, custom separators, float labels, and RTL support. - Events, Methods & Styling: Handle change/select/open/close events, call imperative methods (show, hide, getSelectedRange) via refs, and apply themes (Material 3, Bootstrap 5, Fluent, Tailwind) with cssClass customization. - Use Case: Build a hotel booking form that limits stays to 30 days, validates check-in before check-out, integrates with React Hook Form or Formik, and persists the selection to localStorage. ## Quick Start Add a Syncfusion DateRangePicker to my React app with min and max date constraints and log the selected start and end dates on change.

Frequently Asked Questions about syncfusion-react-daterangepicker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a date range picker to a React app?▼

Install @syncfusion/ej2-react-calendars, import the required theme CSS files, and render DateRangePickerComponent with a change handler that reads e.startDate and e.endDate. Bind startDate and endDate props to state for controlled behavior.

How do I limit the selectable date range in Syncfusion DateRangePicker?▼

Use the min and max props to bound selectable calendar dates, and minDays/maxDays to constrain the span length of a selection. Set strictMode to true to reject invalid typed input.

How do I add preset ranges like Last 7 Days to DateRangePicker?▼

Pass an array of PresetsModel objects to the presets property, each with a label, start, and end Date. Users can then pick common ranges such as Today, Last 7 Days, or This Month directly from the popup.

Does Syncfusion DateRangePicker work with React Hook Form or Formik?▼

Yes. Wrap DateRangePickerComponent in a Controller for React Hook Form or call setFieldValue inside the change handler for Formik, mapping e.startDate and e.endDate into the form value. Validation rules can check date order and required selection.

How do I disable weekends in the Syncfusion DateRangePicker calendar?▼

Handle the renderDayCell event and set args.isDisabled to true when args.date.getDay() returns 0 or 6. This greys out weekend cells so users cannot select them.

Why is my DateRangePicker disabled prop not working?▼

The component uses the enabled property, not disabled, to toggle interactivity. Set enabled={false} to disable the picker, or use readonly to prevent editing while keeping the popup accessible.