reactjs-weekday-picker

1.0.2 • Public • Published

react-weekday-picker

build status npm version npm downloads

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} />
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    11
  • 1.0.0
    0

Package Sidebar

Install

npm i reactjs-weekday-picker

Weekly Downloads

11

Version

1.0.2

License

MIT

Unpacked Size

30.7 kB

Total Files

11

Last publish

Collaborators

  • senior312