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

react-input-moment

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-input-moment

React datetime picker powered by momentjs

  • 0.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
increased by281.25%
Maintainers
1
Weekly downloads
 
Created
Source

input-moment

React datetime picker powered by momentjs

This is a fork of input-moment that aims to add more functionality and make less assumptions about environment.

Requirements

This module has peer dependencies: react, react-dom, lodash, and moment. These dependencies are not included in the build to reduce library size. This allows for a flat dependency graph and should significantly reduce build size.

Usage

import {InputMoment, Calendar, Clock} from 'react-input-moment';

<InputMoment
  moment={this.state.moment}
  onChange={this.handleChange}
  showSeconds={true}
  locale="en"
  />

<Calendar
  moment={this.state.moment}
  onChange={this.handleChange}
  locale="en"
  />

<Clock
  moment={this.state.moment}
  onChange={this.handleChange}
  showSeconds={true}
  locale="en"
  />

Check app.js for a working example.

Development

  • npm install react react-dom lodash moment
  • npm install
  • npm start
  • http://localhost:8888

License

ISC

Keywords

FAQs

Package last updated on 08 Jun 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

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