Simplified and responsive calendar component for React
Build with webpack and CSS Modules
npm i rc-minicalendar
<Calendar
select={new Date()}
locale="zh-CN"
minDate={new Date()}
maxDate={new Date('2016-12-12')}
onSelect={this.onDatePick}/>
name | type | default | description |
---|---|---|---|
select | Date | new Date() | Default current date |
locale | String/Object | 'en-US' | Locale for day and month, support en-US and zh-CN or Object contains days and months |
minDate | Date | new Date() | Minimal date, default ucrrent date |
*maxDate | Date | Maximal date | |
*onSelect | func | null | callback function on user select |
MIT