rc-signin-calendar
v0.0.3
Published
it is a react signin calendar
Downloads
4
Maintainers
Readme
React-Signin-Calendar
Screenshots
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
Properties | Type | Descrition | Required |:-:|:-:|:-:|:-:| signDates | Date [] | sign in dates | true| reSignDates | Date [] | resign in dates | true | onSelect | (date: Date) => void | select date callback | true | optionalDateRange|Object | sign in begin and end date | false | selectedBgColor| string |sign in background color| false | ...|...|...|...