0.0.3 • Published 5 years ago

rc-signin-calendar v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

React-Signin-Calendar

npm.io npm.io

Screenshots

npm.io

Getting started

you should use npm to install it.

npm install rc-signin-calendar

Usage

import Calendar from "rc-signin-calendar";

class App extends React.Component {
  onSelect = (date: Date) => {
    console.log("onSelect date => ", date);
  };
  render() {
    return (
      <Calendar
        signDates={[]}
        reSignDates={[]}
        onSelect={date => this.onSelect(date)}
      />
    );
  }
}

API

PropertiesTypeDescritionRequired
signDatesDate []sign in datestrue
reSignDatesDate []resign in datestrue
onSelect(date: Date) => voidselect date callbacktrue
optionalDateRangeObjectsign in begin and end datefalse
selectedBgColorstringsign in background colorfalse
............

License

The MIT License