deku-calendar

1.0.3 • Public • Published

deku-calendar

Date picker component for Deku

Install

$ npm install --save deku-calendar

Usage

import Calendar from 'deku-calendar';
 
function onSelect(date) {
    console.log(date);
    //=> Fri Dec 25 2015 00:00:00 GMT+0100 (W. Europe Standard Time)
}
 
export function render() {
    return (
        <Calendar defaultDate={new Date()} setDefaultDate firstDay={1} minDate={new Date()} onSelect={onSelect}/>
    );
}
 

Documentation

Arguments and documentation for the Pikaday date picker can be found here.

License

MIT © gillstrom

Package Sidebar

Install

npm i deku-calendar

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • gillstrom
  • kevva