
Description
react-google-flight-datepicker is a date picker for React, inspired by the date selector on Google Flights. It comes in two forms: a RangeDatePicker for choosing a start and end date, and a SingleDatePicker for one date. You can set the earliest and latest selectable dates, choose whether weeks start on Monday or Sunday, change the placeholder text for each input, and highlight today. Dates are displayed with format strings that follow the Moment.js conventions, and an onChange handler reports when the selected dates change. The SingleDatePicker can also be shown as a single calendar. The README includes usage examples for both pickers, a table of all props with their defaults, and a live demo on CodeSandbox. To run the demo on your own computer, you clone the repository and start it with yarn. The source is public on GitHub. It suits React developers who need a date range input for booking, travel or search forms.…
Highlights
- Range and single date pickers
- Weeks start on Monday or Sunday
- Minimum and maximum date limits
- Moment.js display formats
- Live demo on CodeSandbox
Ratings & Reviews
No ratings yet
Be the first to rate react-google-flight-datepicker.
People also visit
pikaday
A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS
react-google-flight-datepicker FAQ
What is react-google-flight-datepicker?
A React date picker inspired by Google Flights, with a range picker and a single date picker.
Can it select a date range?
Yes. RangeDatePicker sets a start and end date and calls onChange when either one changes.
How do I change how dates look?
Use the dateFormat and monthFormat props, which take Moment.js format strings, along with the placeholder and className props.
Can I try it before installing?
Yes. The README links a live CodeSandbox demo, and you can clone the repository and run it with yarn.
What are the best react-google-flight-datepicker alternatives?
Popular alternatives to react-google-flight-datepicker include react-day-picker, date-range-picker and react-big-calendar. See all react-google-flight-datepicker alternatives
















