airbnb.io - react-dates An accessible, easily internationalizable, mobile-friendly datepicker library for the web7,757









Search Preview

Airbnb Engineering & Data Science

airbnb.io
Airbnb.io Open SourceEventsBlogGithubCareersAirbnb.io react-datesAn accessible, easily internationalizable, mobile-friendly datepicker library for the web
.io > airbnb.io

SEO audit: Content analysis

Language Error! No language localisation is found.
Title Airbnb Engineering & Data Science
Text / HTML ratio 45 %
Frame Excellent! The website does not use iFrame solutions.
Flash Excellent! The website does not have any flash contents.
Keywords cloud prop date set days PropTypesfunc PropTypesbool dates PropTypesstring true DateRangePicker props user DayPicker datepicker momentPropTypesmomentObj onFocusChange phrases withPortal background select
Keywords consistency
Keyword Content Title Description Headings
prop 11
date 10
set 8
days 7
PropTypesfunc 6
PropTypesbool 5
Headings
H1 H2 H3 H4 H5 H6
1 3 1 1 0 0
Images We found 1 images on this web page.

SEO Keywords (Single)

Keyword Occurrence Density
prop 11 0.55 %
date 10 0.50 %
set 8 0.40 %
days 7 0.35 %
PropTypesfunc 6 0.30 %
PropTypesbool 5 0.25 %
dates 5 0.25 %
PropTypesstring 5 0.25 %
true 5 0.25 %
DateRangePicker 5 0.25 %
props 5 0.25 %
user 4 0.20 %
DayPicker 4 0.20 %
datepicker 4 0.20 %
momentPropTypesmomentObj 4 0.20 %
onFocusChange 4 0.20 %
phrases 4 0.20 %
withPortal 4 0.20 %
background 4 0.20 %
select 3 0.15 %

SEO Keywords (Two Word)

Keyword Occurrence Density
of the 8 0.40 %
in the 7 0.35 %
to the 6 0.30 %
set to 5 0.25 %
prop is 5 0.25 %
to true 4 0.20 %
on the 4 0.20 %
to allow 4 0.20 %
is set 4 0.20 %
indicates the 3 0.15 %
your own 3 0.15 %
number of 3 0.15 %
the user 3 0.15 %
the DayPicker 3 0.15 %
you may 3 0.15 %
the screen 3 0.15 %
with a 3 0.15 %
the datepicker 3 0.15 %
the DateRangePicker 3 0.15 %
down to 2 0.10 %

SEO Keywords (Three Word)

Keyword Occurrence Density Possible Spam
is set to 4 0.20 % No
prop is set 4 0.20 % No
set to true 3 0.15 % No
centrally on the 2 0.10 % No
down to the 2 0.10 % No
held in the 2 0.10 % No
as an argument 2 0.10 % No
in the parent 2 0.10 % No
the parent component 2 0.10 % No
parent component and 2 0.10 % No
component and pass 2 0.10 % No
and pass that 2 0.10 % No
pass that back 2 0.10 % No
that back down 2 0.10 % No
at the top 2 0.10 % No
back down to 2 0.10 % No
to the DateRangePicker 2 0.10 % No
constants from reactdatesconstants 2 0.10 % No
state being held 2 0.10 % No
and END_DATE constants 2 0.10 % No

SEO Keywords (Four Word)

Keyword Occurrence Density Possible Spam
prop is set to 4 0.20 % No
is set to true 3 0.15 % No
to the actual 2 0.10 % No
the callback necessary to 2 0.10 % No
callback necessary to update 2 0.10 % No
necessary to update the 2 0.10 % No
to the DateRangePicker as 2 0.10 % No
down to the DateRangePicker 2 0.10 % No
back down to the 2 0.10 % No
that back down to 2 0.10 % No
being held in the 2 0.10 % No
state being held in 2 0.10 % No
held in the parent 2 0.10 % No
in the parent component 2 0.10 % No
the parent component and 2 0.10 % No
parent component and pass 2 0.10 % No
component and pass that 2 0.10 % No
START_DATE and END_DATE constants 2 0.10 % No
the START_DATE and END_DATE 2 0.10 % No
and pass that back 2 0.10 % No

Internal links in - airbnb.io

Open Source
Airbnb Engineering & Data Science
Events
Airbnb Engineering & Data Science
Airflow Use Apache Airflow (incubating) to author workflows as directed acyclic graphs (DAGs) of tasks8,613
Airbnb Engineering & Data Science
Aerosolve A machine learning package built for humans4,385
Airbnb Engineering & Data Science
BinaryAlert Serverless real-time and retroactive malware detection705
Airbnb Engineering & Data Science
AirMapView A view abstraction to provide a map user interface with various underlying map providers1,583
Airbnb Engineering & Data Science
Airpal Web UI for PrestoDB2,345
Airbnb Engineering & Data Science
DeepLinkDispatch Easy declaration and routing of your deep links2,990
Airbnb Engineering & Data Science
Enzyme JavaScript Testing utilities for React14,372
Airbnb Engineering & Data Science
Hammerspace Hash-like interface to persistent, concurrent, off-heap storage302
Airbnb Engineering & Data Science
Hypernova A service for server-side rendering your JavaScript views4,266
Airbnb Engineering & Data Science
Epoxy An Android library for building complex screens in a RecyclerView4,301
Airbnb Engineering & Data Science
Interferon Signaling you about infrastructure or application issues178
Airbnb Engineering & Data Science
JavaScript Style Guide A mostly reasonable approach to JavaScript73,101
Airbnb Engineering & Data Science
The Knowledge Repo A next-generation curated knowledge sharing platform for data scientists and other technical professions2,992
Airbnb Engineering & Data Science
Polyglot Give your JavaScript the ability to speak many languages2,734
Airbnb Engineering & Data Science
Nerve A service registration daemon that performs health checks; companion to airbnb/synapse837
Airbnb Engineering & Data Science
mocha-wrap Fluent pluggable interface for easily wrapping `describe` and `it` blocks in Mocha tests39
Airbnb Engineering & Data Science
Rheostat Rheostat is a www, mobile, and accessible slider component built with React1,248
Airbnb Engineering & Data Science
ReAir A collection of easy-to-use tools for replicating tables and partitions between Hive data warehouses206
Airbnb Engineering & Data Science
react-dates An accessible, easily internationalizable, mobile-friendly datepicker library for the web7,757
Airbnb Engineering & Data Science
Ruby Style Guide Airbnb's Ruby Style Guide2,366
Airbnb Engineering & Data Science
react-with-styles Use CSS-in-JavaScript with themes for React without being tightly coupled to one implementation1,242
Airbnb Engineering & Data Science
Superset Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application19,842
Airbnb Engineering & Data Science
RxGroups Easily group RxJava Observables together and tie them to your Android Activity lifecycle668
Airbnb Engineering & Data Science
StreamAlert A serverless framework for real-time data analysis and alerting1,406
Airbnb Engineering & Data Science
Stemcell Airbnb's EC2 instance creation and bootstrapping tool157
Airbnb Engineering & Data Science
Synapse A transparent service discovery framework for connecting an SOA1,830
Airbnb Engineering & Data Science

Airbnb.io Spined HTML


Airbnb Engineering & Data Science Airbnb.io Open SourceEventsBlogGithubCareersAirbnb.io react-datesAn accessible, hands internationalizable, mobile-friendly datepicker library for the web7,757By Maja WichrowskaLive Playground For examples of the datepicker in action, go to http://airbnb.io/react-dates. To run that demo on your own computer: npm install npm run storybook Visit http://localhost:9001/ API We have a handful of variegated components and utilities misogynist for all of your stage picking needs! DateRangePicker This fully-controlled component is designed to indulge a user to select both a start stage and an end date. It is weightier suited for a selecting a relatively short stage range some time in the next year. Props Dates: Moment objects representing the currently selected start and end dates. To indicate that a stage has not yet been selected, these are set to null. startDate: momentPropTypes.momentObj endDate: momentPropTypes.momentObj onDatesChange is the callback necessary to update the stage state stuff held in the parent component and pass that when lanugo to the DateRangePicker as props. onDatesChange receives an object of the form { startDate: momentPropTypes.momentObj, endDate: momentPropTypes.momentObj } as an argument. onDatesChange: PropTypes.func Focus: The focusedInput prop indicates which of the two inputs is currently focused, if either. You can import the START_DATE and END_DATE constants from react-dates/constants. focusedInput: PropTypes.oneOf([START_DATE, END_DATE]) onFocusChange is the callback necessary to update the focus state stuff held in the parent component and pass that when lanugo to the DateRangePicker as a prop. onFocusChange receives either START_DATE, END_DATE, or null as an argument. onFocusChange: PropTypes.funcStageselection rules: The value of minimumNights indicates the minimum number of days between the start stage and the end date. minimumNights: PropTypes.number To indicate which days are obstructed from selection, you may provide a function to the isDayBlocked prop. As of v1.0.0, we indulge obstructed dates inside of ranges. isDayBlocked: PropTypes.func isOutsideRange indicates which days are out of selectable range. Past dates out of range by default. If you would like to indulge the user to select days in the past, you may set isOutsideRange to () => true. isOutsideRange: PropTypes.funcTimetablepresentation: numberOfMonths indicates the number of visible months at a time. numberOfMonths: PropTypes.number By default, we do not show days from the previous month and the next month in the same table as the currently visible month. However, sometimes, and expressly if the numberOfMonths prop is set to 1, it might make sense to indulge users to see these days as well. To do, you may set enabledOutsideDays to true. These days can still be styled by selecting on the CalendarMonth__day--outside class. enableOutsideDays: PropTypes.bool DayPicker presentation: The orientation prop indicates whether months are stacked on top of each other or displayed side-by-side. You can import the HORIZONTAL_ORIENTATION and VERTICAL_ORIENTATION constants from react-dates/constants. orientation: PropTypes.oneOf([HORIZONTAL_ORIENTATION, VERTICAL_ORIENTATION]) withPortal was designed for use on mobile devices. Namely, if this prop is set to true, the DayPicker will be rendered centrally on the screen, whilom the current plane, with a transparent woebegone preliminaries overdue it. Clicking on the preliminaries will hibernate the DayPicker. This option is currently only misogynist for a DateRangePicker with a horizontal orientation. withPortal: PropTypes.bool withFullScreenPortal is a full-screen takeover version of the withPortal prop. Similarly to withPortal, the DayPicker is rendered centrally on the screen, whilom the current plane. However, instead of a clickable transparent woebegone background, the preliminaries is solid and white. To tropical the datepicker, the user must either select a stage or click the tropical sawed-off located at the top right of the screen. withFullScreenPortal: PropTypes.bool Input presentation: The startDateId and endDateId props are prescribed to the very <input> DOM elements for serviceability reasons. They default to the values of the START_DATE and END_DATE constants. startDateId: PropTypes.string endDateId: PropTypes.string The startDatePlaceholderText and endDatePlaceholderText props are the placeholders for the two inputs. startDatePlaceholderText: PropTypes.string, endDatePlaceholderText: PropTypes.string, If the showClearDates prop is set to true, an x shows up in the input box that allows you to well-spoken out both dates and reset the input. showClearDates: PropTypes.bool, If the disabled prop is set to true, onFocusChange is not tabbed when onStartDateFocus or onEndDateFocus are invoked and disabled is prescribed to the very <input> DOM elements. disabled: PropTypes.bool, Some useful callbacks: If you need to do something when the user navigates between months (for instance, trammels the availability of a listing), you can do so using the onPrevMonthClick and onNextMonthClick props. onPrevMonthClick: PropTypes.func, onNextMonthClick: PropTypes.func, Internationalization: While we have reasonable defaults for english, we understand that that's not the only language in the world! :) At Airbnb, increasingly than 50% of users visit our site in a language other than english. Thus, in wing to supporting moment locales, the DateRangePicker accepts a number of props to indulge for this. The monthFormat prop abides by moment's stage formatting rules and indicates the format in which to exhibit dates at the top of each calendar. It defaults to MMMM YYYY. monthFormat: PropTypes.string, The phrases prop is an object that contains all the English language phrases currently part of the class. As of now, we only have two such phrases and neither are visible but they are used for screen-reader navigation of the datepicker. phrases: PropTypes.shape({ closeDatePicker: PropTypes.node, clearDates: PropTypes.node, }), Theming react-dates comes with a set of SCSS variables that can be overridden to add your own project-specific theming. Override any variables found in css/variables.scss with your own and then import ~react-dates/css/styles.scss (and ~react-dates/css/variables.scss if you're only overriding a few).LinksGithubDemo© Airbnb, Inc.© Airbnb, Inc.CareersDesignCareersDesignCareersDesign