1.1.3 • Published 8 years ago
react-basic-datepicker v1.1.3
React Basic Datepicker
A barebones, super-simple datepicker built with React. This was built to be as simple and small as I could make it, if you want something with a few more features then check out React Datepicker.
Usage
Render the datepicker and supply any of the props listed below.
ReactDOM.render(<Datepicker dateFormat="DD/MM/YYYY" />, document.getElementById('react-root'));
There are basic styles defined in the demo directory which can be copied into your project.
Props
You can customise the datepicker by supplying the follow props.
dateFormate.g. DD-MM-YYYYstartDatee.g.new Date()minDatee.g.new Date(2016, 11)prevButtonLabele.g. 'Previous Month'nextButtonLabele.g. 'Next Month'handleDateChangee.g. set state or do whatever with the date...datepickerNamee.g.my-date-pickerdatepickerIde.g.my-date-pickerdatepickerClassNamee.g.my-date-picker