Package Exports
- react-calendar
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-calendar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-calendar
Calendars for React.
Not just calendar component, but a modular toolkit for building everything related to calendars in React, such as Datepickers.
In early alpha stage, documentation and features will arrive.
Example
npm install
npm run
One year calendar:
<Calendar firstMonth={1} <!-- Base calendar compoment -->
date={moment("2014-01-01")}
weekNumbers={true}
size={12}>
<Month date={moment()} <!-- Pass subcomponents to mark -->
modifiers={{current: true}}/> <!-- current month and day -->
<Day date={moment()}
modifiers={{current: true}} />
</Calendar>
Each component can be used separately AND passed to other components to modify rendering.
<Month date={moment()} />
Styling
There is no style by default, but an example theme using bootstrap is included in less/bootstrap-theme.less.