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

ds-ui-library

v1.0.2

Published

## Overview

Readme

DS UI Library

Overview

The DS UI Library is a component library designed to provide reusable UI components for React applications. Currently, it includes a customizable Select Dropdown component. This library is built using modern tools and technologies to ensure a smooth development experience and high-quality output.

Installation

  1. Install ds-ui-library
yarn add ds-ui-library
  1. Import style in to your entry point
import 'ds-ui-library/dist/style.css';

Usage/Examples

import { SelectDropdown } from 'ds-ui-library';

function App() {
  const options = [
    { label: 'Very Long Option Label One', value: 'option1' },
    { label: 'A Lengthy Description for Option Two', value: 'option2' },
    { label: 'Extended Label Name for Option Three', value: 'option3' },
    { label: 'A Prolonged Option Label Example Number Four', value: 'option4' },
    { label: 'Detailed Label for the Fifth Option Item', value: 'option5' },
    { label: 'An Exceedingly Long Option Label for Item Six', value: 'option6' },
    { label: 'Option Label Seven with Quite an Extensive Description', value: 'option7' },
    { label: 'This is a Very Extended Option Label for Item Eight', value: 'option8' },
    { label: 'Option Number Nine with a Long Descriptive Title', value: 'option9' },
    { label: 'A Lengthy and Descriptive Label for Option Ten', value: 'option10' },
    { label: 'Extensive Label Name for the Eleventh Option Item', value: 'option11' },
    { label: 'Option Twelve Featuring a Detailed Description', value: 'option12' },
    { label: 'This Option Label is Quite Lengthy and Descriptive for Thirteen', value: 'option13' },
    { label: 'Extended Option Label for Number Fourteen', value: 'option14' },
    { label: 'Option Fifteen with a Remarkably Long Label', value: 'option15' },
    { label: 'A Very Detailed Description for the Sixteenth Option Item', value: 'option16' },
    { label: 'Seventeenth Option with an Extremely Extended Label', value: 'option17' },
    { label: 'Eighteenth Option Featuring a Lengthy Label', value: 'option18' },
    { label: 'Nineteenth Option Item with an Elaborate Label', value: 'option19' },
    { label: 'Option Number Twenty with a Protracted Descriptive Label', value: 'option20' },
  ];

  const renderCustomOption = (option) => (
    <div
      className={clsx(
        'px-2 py-1.5 text-sm text-purple-400 hover:text-purple-600 cursor-pointer',
        option.selected ? 'font-semibold ' : 'font-light ',
      )}
    >
      <strong>{option.item.label}</strong>
    </div>
  );

  return (
    <div className="p-8 space-y-8">
      <h1 className="text-2xl font-bold">Select Dropdown</h1>
      <div>
        <h3 className="mb-1 text-lg text-gray-500 font-semibold">Default</h3>
        <SelectDropdown options={options} placeholder="Please select data" />
      </div>
      <div>
        <h3 className="mb-1 text-lg text-gray-500 font-semibold">Searchable</h3>
        <SelectDropdown options={options} searchable placeholder="Please select data" />
      </div>
      <div>
        <h3 className="mb-1 text-lg text-gray-500 font-semibold">Multiple</h3>
        <SelectDropdown options={options} searchable multiple placeholder="Please select data" />
      </div>

      <div>
        <h3 className="mb-1 text-lg text-gray-500 font-semibold">Portal</h3>
        <SelectDropdown
          options={options}
          multiple
          searchable
          placeholder="Please select data"
          portalContainerId="root"
        />
      </div>

      <div>
        <h3 className="mb-1 text-lg text-gray-500 font-semibold">Custom Render</h3>
        <SelectDropdown
          options={options}
          multiple
          searchable
          placeholder="Please select data"
          customOptionRender={renderCustomOption}
        />
      </div>
    </div>
  );
}

export default App;