0.2.7 • Published 8 years ago

react-simple-datepicker-ecurring v0.2.7

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

React Simple Date Picker

Simple Date Picker component for React

Install

npm install --save react-simple-datepicker

Usage

Simple example on how to use Datepicker. Just import DatePicker module and styles for it.

import React from 'react';
import DatePicker from 'react-simple-datepicker';
import 'react-simple-datepicker/dist/index.css';

class App extends React.Component {
  constructor () {
    super();

    this.state = {
      date: new Date()
    }
  }

  render () {
    return <DatePicker date={this.state.date} />;
  }
}

Props

  • date: (Date) — specifies the start date
  • minDate: (Date) — specifies the minimal date
  • maxDate: (Date) — specifies the maximal date
  • clickOnDate: (Function) — called when the user selects a date

ClassName Props

To specify datepicker styles you can use these props:

  • datepickerClassName
  • inputClassName
  • calendarClassName
  • monthClassName
  • prevMonthClassName
  • nextMonthClassName
  • dayClassName
  • dayActiveClassName
  • dayDisabledClassName
  • dayFromOtherMonthClassName

License

MIT

0.2.7

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.4

8 years ago