@ieremeev/datepicker

1.0.0 • Public • Published

@ieremeev/datepicker

@ieremeev/datepicker provides your with the input box and the calendar which helps to pick the date

Installation

Run this command:

npm install @ieremeev/datepicker --save

Usage

var DatePicker = require('@ieremeev/datepicker');

var MyComponent = React.createClass({
    getInitialState: function() {
        return {
            startDate: '',
        };
    },
    handleChange: function(date) {
        this.setState({
            startDate: date,
        });
    },
    render: function() {
        return (
            <DatePicker
                selected={this.state.startDate}
                onChange={this.handleChange}
            />
        );
    }
});

Props

@ieremeev/datepicker is just a wrapper for react-datepicker with Semantic UI style. You should look at the [react-datepicker documentation][1] for props

Readme

Keywords

none

Package Sidebar

Install

npm i @ieremeev/datepicker

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • ieremeev