Giter Club home page Giter Club logo

react-datepicker's Introduction

React Date Picker

Bower version Build Status devDependency Status Downloads

A simple and reusable datepicker component for React (Demo)

Configuration

  • Change date format by passing a different date format in the props: dateFormat: "YYYY/MM/DD"
  • Add placeholder text: placeholderText: 'Click to select a date' (Defaults to the selected date when no placeholder text is added)
  • Give users a predefined date range: minDate: moment() & maxDate: moment().add(5, 'days') (this gives users the ability to select a date between today and 5 days in the future)

Installation

Installing is really simple and can be done in two different ways:

  • Install with Bower: bower install react-date-picker
  • Install with Bundler: bundle install rails-assets-react-date-picker

Local Development

  • Install Bower npm install -g bower
  • Install Bower Packages bower install
  • Install packages npm install
  • Start a static webserver python -m SimpleHTTPServer
  • And visit localhost:8000/example.html to see the example.

To run tests, simply run npm test.

License

Copyright (c) 2014 HackerOne Inc. and individual contributors. Licensed under MIT license, see LICENSE for the full license.

react-datepicker's People

Contributors

brigand avatar hahahana avatar lbekkema avatar mandarinconlabarba avatar martijnrusschen avatar maxweber avatar michiel3 avatar natlownes avatar nishp1 avatar rso avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.