@logicamente.info/react-input-month

1.0.7 • 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 })}>
    );
  }
}

Package Sidebar

Install

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

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

33.9 kB

Total Files

12

Last publish

Collaborators

  • natanaelsimoes