Socket
Socket
Sign inDemoInstall

react-date-picker

Package Overview
Dependencies
14
Maintainers
1
Versions
259
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-date-picker

React Date Picker


Version published
Weekly downloads
224K
increased by3.15%
Maintainers
1
Install size
7.42 MB
Created
Weekly downloads
 

Readme

Source

react-date-picker

Date picker for React

Install

$ npm install react-date-picker

Usage

NOTE: Don't forget to include index.css or index.styl! ( require('react-date-picker/index.css') )
var date = '2014-10-10' //or Date.now()

function onChange(moment, dateString){
    //...
}
<DatePicker
        minDate='2014-04-04'
        maxDate='2015-10-10'
        date={date}
        onChange={onChange}
/>

Options

  • hideFooter: Boolean - by default footer is shown, so specify this to true if you don't want the footer
  • date : Date / String / Moment / Number
  • viewDate: Date / String / Moment / Number
  • minDate : Date / String / Moment / Number
  • maxDate : Date / String / Moment / Number
  • onChange: Function

Other

react-date-picker uses the awesome moment.js library ( Big thanks!)

If you don't use npm you can include any of the following:

  • dist/react-color-picker.js - the full sources. NOTE: You'll need to include React separately
  • dist/react-color-picker.min.js - minified & optimized version. NOTE: You'll need to include React separately
  • dist/react-color-picker.nomoment.js - the full sources. NOTE: You'll need to include React AND moment.js separately
  • dist/react-color-picker.nomoment.min.js - minified & optimized version. NOTE: You'll need to include React AND moment.js separately

Keywords

FAQs

Last updated on 30 Oct 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc