Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-day-input

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-day-input

A simple date picker for React, powered by Moment.

  • 1.0.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

react-day-input

npm version Downloads

A simple date picker for React, powered by Moment.

Live Demo

Check out the live demo here: http://abasystems.github.io/react-day-input/

Installation

Install the package with npm:

npm install react-day-input

Then require and use with ES6 imports:

import React from 'react'

import { StrictDayInput } from 'react-day-input'

class MyForm extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      ...this.state,

      dueBy: null,
    };
  }

  render() {
    return (
      <form>
        <StrictDayInput
          value={this.state.dueBy}
          onChange={(newDate) => {
            this.setState({dueBy: newDate});
          }}
        />
        <button type="submit">Submit</button>
      </form>
    );
  }
}

And include the built css with an import:

@import 'node_modules/react-day-input/dist/react-day-input.css';

or tag:

<link href="static/node_modules/react-day-input/dist/react-day-input.css" rel="stylesheet">

Full reference documentation coming soon. For now, take a look at the reference on the live demo at http://abasystems.github.io/react-day-input/.

Keywords

FAQs

Package last updated on 16 Jun 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc