react-customview-datepicker

1.0.1 • Public • Published

Customized DatePicker with option of dropdown and calendar view by just passing the type attribute.

Getting Started

Install

npm install react-custom-datepicker --save or

yarn add react-custom-datepicker

Import

import DatePicker from 'react-custom-datepicker';

Dependencies

moment

Datepicker
import React, { Component } from 'react';
import DatePicker from './DatePicker';
class App extends Component {

  onChange = (date) => {
    alert(date);
  }
  render() {
    return (
      <DatePicker onChange={this.onChange} type='calendar'/>
    );
  }
}

Here type can have two values (calendar and dropdown)

Calendar_view Dropdown_view

Package Sidebar

Install

npm i react-customview-datepicker

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

672 kB

Total Files

10

Last publish

Collaborators

  • chetanjoshi29