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 🙏

© 2024 – Pkg Stats / Ryan Hefner

select-menu-react-plugin

v2.1.3

Published

React plugin for a select input (dropdown input), made to replace an older version in jquery. 6 props are passed to it to use and custom it !!

Downloads

603

Readme

SelectMenu-ReactEdition

This is a plugin made to replace jquery's old select menu

How to use

Prerequisities :

  • React Version : 18.3+
  • Node version 14.21+

To install it, run 'npm i select-menu-react-plugin' in you project Then, in the components where you want it, use :

import Dropdown from 'select-menu-react-plugin';

Components use 6 props :

interface DropdownProps {
	label: string; // Used to change the name attribute and the default value
	id: string; // Used to change the ID attribute
	data: string[]; // The elements list you want to passe on the select menu
	onChange?: (event: ChangeEvent<HTMLSelectElement>) => void; // Allows you to pass a function to change displayed and used value - optional
	required?: boolean; // Used to define whether or not the field is required to be filed - optional
	error?: boolean; // Used to add 'error' on className, useful if you want to change style - optional
}

2.1.3 version note

README updates

2.1.2 version note

README updates

2.1.1 version note

README and package.json updates

2.1 version note

No more tsc in TypeScript compiling

2.0 is here !! Use of TypeScript !!

1.2 version note

Error props can now be passed in order to change className -- styling purpose

1.1 version note

Label and Id are separated

1.0 version note

Required attribute is now on demande -- pass required={true} or ...{false}