New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
decreased by-56.34%
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.

Notice: This module requires moment as a peerDependency.

Usage

<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"
  />

Every action the user takes in the chosen input will trigger the onChange prop. If you only want to receive one event at the completion of the picking process, there are a set of "buffered" components (BufferedInputMoment, BufferedCalendar, BufferedClock) that add a "Save" button to the input that the user must press to trigger the onChange prop.

Check app.js for a working example.

Development

Work Left To Do

  • Get rid of LESS/CSS in favor of using react-stylesheet.
  • ES6-ify the code.

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