0.0.10 • Published 8 years ago

rc-minicalendar v0.0.10

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Calendar

Simplified and responsive calendar component for React

Build with webpack and CSS Modules

Story book

Install

npm i rc-minicalendar

Usage

<Calendar
  select={new Date()}
  locale="zh-CN"
  minDate={new Date()}
  maxDate={new Date('2016-12-12')}
  onSelect={this.onDatePick}/>

Props

nametypedefaultdescription
selectDatenew Date()Default current date
localeString/Object'en-US'Locale for day and month, support en-US and zh-CN or Object contains days and months
minDateDatenew Date()Minimal date, default ucrrent date
*maxDateDateMaximal date
*onSelectfuncnullcallback function on user select

License

MIT