Neutron Polarization Manipulator
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@logicamente.info/react-input-month

1.0.3 • Public • Published

React-Input-Month

Travis npm package

This is a React component that enables the use of inputs with month type in browsers that does not support it nativelly.

For a demo, run yarn start.

Installation

$ npm i -S @logicamente.info/react-input-month # NPM user 
$ yarn add @logicamente.info/react-input-month # NPM user 

Usage

import React from 'react';
import InputMonth from '@logicamente.info/react-input-month';
 
export default class Demo extends React.Component {
  render() {
    return (
      <InputMonth
        required        // Default: false
        lang={"pt-BR"}  // Default: en-US
        value={this.state.month}
        onChange={(e) => this.setState({ month: e.target.value })}>
    );
  }
}

Install

npm i @logicamente.info/react-input-month

DownloadsWeekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

32.5 kB

Total Files

12

Last publish

Collaborators

  • avatar