Skip to content

masdem/react-year-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Year Picker

A simple Yearpicker component for React

Installation

The package can be installed via NPM and YARN:

npm install rc-year-picker --save
Or
yarn add rc-year-picker
import React from "react";
import YearPicker from "react-year-picker";

class Example extends React.Component {
  constructor(props) {
    super(props);
    this.handleChange = this.handleChange.bind(this);
  }

  handleChange(date) {
    console.log(date);
  }

  render() {
    return <YearPicker onChange={this.handleChange} placeholder="Birth year" thisYearLabel='Current year' />;
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published