npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

multi-year-select

v1.1.13

Published

[![npm version](https://badge.fury.io/js/multi-year-select.svg)](https://www.npmjs.com/package/multi-year-select) [![license](https://img.shields.io/npm/l/multi-year-select)](https://github.com/mamunr412)

Readme

MultiYearSelect - A Flexible React Multi-Year Selector Component

npm version license

Overview

MultiYearSelect is a highly customizable and lightweight React component for selecting multiple years from a specified range. Its user-friendly interface and flexibility make it ideal for applications requiring a year range picker, such as experience selection forms, data filters, and more.


Key Features

  • 📆 Customizable Year Range: Dynamically define the start and end years.
  • 🖱️ Intuitive UI: Easy-to-use dropdown with multi-select functionality.
  • 🎨 Stylable: Customize styles using custom class names.
  • 🔄 Real-Time Updates: Get selected years via callback in real time.
  • 🚀 Lightweight: Minimal dependencies ensure optimal performance.

Installation

Install the package using npm or yarn:

npm install multi-year-select

or

yarn add multi-year-select

Usage

Integrating MultiYearSelect into your React project is simple. Here's an example:

import React from "react";
import MultiYearSelect from "multi-year-select";

const App = () => {
  const handleSelectionChange = (selectedYears) => {
    console.log("Selected years:", selectedYears);
  };

  return (
    <div>
      <h1>Multi-Year Selector</h1>
      <MultiYearSelect
        startYear={2000}
        endYear={2030}
        onSelectionChange={handleSelectionChange}
        className="custom-class"
      />
    </div>
  );
};

export default App;

Props

| Prop | Type | Default | Description | | ------------------- | ---------- | ------------ | --------------------------------------- | | startYear | number | 2000 | The first year in the selectable range. | | endYear | number | Current year | The last year in the selectable range. | | onSelectionChange | function | undefined | Callback for handling selected years. | | className | string | Optional | Additional classes for custom styling. |


Demo

Live Demo on CodeSandbox


Why Choose MultiYearSelect?

  1. Accessibility: Designed to be inclusive and user-friendly.
  2. Flexibility: Ideal for use cases like year filters, date range pickers, or experience selection.
  3. Ease of Integration: Seamlessly integrates into any React project.

Styling and Customization

You can style MultiYearSelect by overriding the default styles with custom CSS classes. Use the className prop to apply your own styles.

Example CSS:

.custom-class {
  width: 100%;
  max-width: 300px;
}
.custom-class .selected-year {
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
}

Contributing

Contributions are welcome! If you have ideas for improvements or find any issues, feel free to submit an issue or create a pull request.

Steps to Contribute

  1. Fork the repository.
  2. Create a feature branch.
  3. Commit your changes and submit a pull request.

License

This project is licensed under the MIT License.


Keywords

React, Multi-Year Select, Year Picker, Dropdown Selector, React Year Range, Custom Year Picker, MultiSelect, React Component


Support

For questions or issues, feel free to reach out or file an issue.


Stay Updated

Star this repository if you find it helpful!
📢 Follow us on GitHub for updates.


Start using MultiYearSelect today to enhance your React projects with an elegant and efficient year selection feature! 🎉