npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

@kaluza/react-datepicker

1.0.2 • Public • Published

React DatePicker

Datepicker component loosely based around Material UI design.

Demo

Todo...

Usage

import Calendar from '@kaluza/react-datepicker';
 
const Page = (props) => (
  <div className="my-page">
    <Calendar />
  </div>
);

Props

maxDate  PropTypes.string (ISO Formatted Date)
Default: Today
 
 
 
minDate  PropTypes.string (ISO Formatted Date)
Default: 0000-01-01
 
 
 
mode     PropTypes.oneOf(['DAY', 'MULTIDAY', 'MONTH', 'YEAR'])
Default: DAY
 
 
 
multidayNumberOfSelectedDays   PropTypes.number
Default: 1
 
 
 
onCancel  PropTypes.func
Default: () => {}
 
 
 
onSelect PropTypes.func
Default: () => {}
 
 
 
selectedDate PropTypes.string (ISO Formatted Date)
Default: Today
 

install

npm i @kaluza/react-datepicker

Downloadsweekly downloads

24

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability