1.0.8 • Published 8 years ago
react-weekday-picker v1.0.8
react-weekday-picker
Customizable weekday picker component for React.js.
This module is based very heavily off of gpbl/react-day-picker (docs and examples).
- select weekdays with CSS modifiers
- easily change style and add content to weekday cells
- ready for i18n, with moment.js or any other library
Usage
npm install react-weekday-picker --save
import React from "react";
import WeekdayPicker from "react-weekday-picker";
class MyComponent extends React.Component {
render() {
var modifiers = {
'weekend': function(weekday) {
return weekday == 0 || weekday == 6;
}
};
return <WeekdayPicker modifiers={modifiers} />
}
}