@logicamente.info/react-input-month
v1.0.7
Published
React component that enables the use of inputs with month type in browsers that does not support it nativelly
Downloads
7
Maintainers
Readme
React-Input-Month
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 })}>
);
}
}