New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-simple-datepicker-ecurring

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-datepicker-ecurring

React datepicker component

latest
Source
npmnpm
Version
0.2.7
Version published
Maintainers
1
Created
Source

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

Keywords

react

FAQs

Package last updated on 17 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts