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

99foundr-super-select

v1.0.1

Published

A lightweight, accessible, highly customizable React multi-select component library.

Downloads

35

Readme

99foundr-super-select

A lightweight, accessible, highly customizable React select and multi-select component library designed natively for React with optional headless mode, Bootstrap compatibility, and virtualized lists.

Installation

npm i 99foundr-super-select

or

yarn add 99foundr-super-select

Usage

Single Select

import React, { useState } from "react";
import { Select } from "react-super-select";
import "react-super-select/styles/base.css";

const options = [
  { label: "Apple", value: "apple" },
  { label: "Banana", value: "banana" },
  { label: "Cherry", value: "cherry" },
];

export const Example = () => {
  const [value, setValue] = useState(null);
  return <Select options={options} value={value} onChange={setValue} />;
};

Multi Select

import React, { useState } from "react";
import { MultiSelect } from "react-super-select";
import "react-super-select/styles/base.css";

const options = [
  { label: "Alpha", value: "a" },
  { label: "Beta", value: "b" },
  { label: "Gamma", value: "c" },
];

export const Example = () => {
  const [value, setValue] = useState([]);
  return (
    <MultiSelect
      options={options}
      value={value}
      onChange={setValue}
      clearable
      searchable
    />
  );
};

Async Search

<Select
  options={[]}
  value={value}
  onChange={setValue}
  loadOptions={async (input) => {
    return [
      { label: `Result ${input} A`, value: `${input}-a` },
      { label: `Result ${input} B`, value: `${input}-b` },
    ];
  }}
/>

Styling Guide

The library supports three styling modes:

  1. Headless: import no CSS and provide all styles yourself.
  2. Default Theme: import the minimal base styles.
  3. Bootstrap Theme: import Bootstrap-compatible styles.
import "react-super-select/styles/base.css"; // default theme
// or
import "react-super-select/styles/bootstrap.css"; // bootstrap theme

Class Overrides

Use the classNames prop to override classes per element.

<Select
  options={options}
  value={value}
  onChange={setValue}
  classNames={{
    container: "my-container",
    control: "my-control",
    dropdown: "my-dropdown",
    option: "my-option",
  }}
/>

Accessibility Guide

This library follows the WAI-ARIA combobox pattern:

  • Container: role="combobox"
  • Dropdown: role="listbox"
  • Option: role="option"
  • Multi-select listbox: aria-multiselectable="true"
  • Selected options: aria-selected="true"

Keyboard interactions:

  • ArrowDown: next option
  • ArrowUp: previous option
  • Enter: select
  • Escape: close dropdown
  • Backspace: remove last tag (multi)
  • Tab: exit

API Documentation

Select

Props:

  • options: Option[]
  • value: Option | null
  • onChange: (value: Option | null) => void
  • searchable?: boolean
  • clearable?: boolean
  • disabled?: boolean
  • searchType?: "startsWith" | "contains" | "fuzzy"
  • classNames?: ClassNames
  • components?: CustomComponents
  • portal?: boolean | HTMLElement
  • taggable?: boolean
  • onCreateOption?: (input: string) => Option
  • loadOptions?: (input: string) => Promise<Option[]>
  • debounceMs?: number

MultiSelect

Props:

  • All Select props
  • value: Option[]
  • onChange: (value: Option[]) => void
  • maxSelections?: number

Option type

type Option = {
  label: string;
  value: string | number;
  disabled?: boolean;
  group?: string;
  meta?: Record<string, any>;
};

ClassNames

type ClassNames = {
  container?: string;
  control?: string;
  input?: string;
  dropdown?: string;
  option?: string;
  optionActive?: string;
  optionSelected?: string;
  tag?: string;
  tagRemove?: string;
  placeholder?: string;
};

CustomComponents

type CustomComponents = {
  Option?: React.ComponentType;
  Tag?: React.ComponentType;
  Dropdown?: React.ComponentType;
  SearchInput?: React.ComponentType;
};

Performance Benchmarks

  • Core bundle target: under 8kb gzipped
  • Full bundle target: under 18kb gzipped
  • First render target: under 20ms
  • Dropdown open target: under 10ms

Internal optimizations include memoized components, virtualization for large lists (over 200 options), and debounced search input (250ms).

SSR Support

The components are safe for Next.js, Remix, and Astro. All browser-only APIs are accessed in effects.

License

MIT