1.0.3 • Published 8 years ago

deku-calendar v1.0.3

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

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