Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

LogicamenteInfo/react-input-month

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published