React component for calendar widged.
React Input Calendar is available as an npm package.
npm install react-input-calendarUse browserify and reactify for dependency management and JSX transformation.
All styles written in CSS and are in file input-component.css.
http://rudeg.github.io/react-input-calendar
var Calendar = require('react-input-calendar');
React.render(
<Calendar
format="DD/MM/YYYY"
date="4-12-2014"
/>,
document.body
);Type: String
Default: 'DD-MM-YYYY'
Allowed Keys: All formats supported by moment.js
Format of date, which display in input and set in date property.
Type: String or Date
Default: Current date
Set initial date value.
Type: String
Default: 'YYYY-MM-DD'
Allowed Keys: All formats supported by moment.js
Format of date for the onChange event. Default on the internation date format (ISO 8601) to ease the save of data;
Type: Function
Default: null
Set an function that will be triggerred whenever there is a change in the selected date. It will return the date in the props.computableFormat format
MIT