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

@citizensadvice/cads-form-selects

v0.0.5

Published

![npm (scoped)](https://img.shields.io/npm/v/@citizensadvice/cads-form-selects.svg)

Readme

Form selects

npm (scoped)

Component type

  • Component

Dependencies:

| Name | Description | | ---------------------------------------- | --------------------------------------------------------- | | @citizensadvice/cads-support | System-wide global variables and functions | | @citizensadvice/cads-interactive-block | Mixins for handling interactive element (buttons, inputs) |

Installation

$ npm install @citizensadvice/cads-form-selects
@import "@citizensadvice/cads-form-selects/index.scss";

You can also make use of the unpkg service, try adding the link below to the head of your HTML file <link src="https://unpkg.com/@citizensadvice/cads-form-selects@latest/build/cads.form-selects.css" />

Implementation

Selects can also be referred to as "Dropdowns".

Avoid dropdowns if you can. They should be avoided for a number of reasons:

  • they hide the options available. Users have to interact with the element before they know what they’re being asked, which makes it harder to comprehend things at a glance.
  • research has shown that users with low digital literacy can struggle with dropdowns. This is especially an issue when they contain a lot of options - either they don’t know how to interact with them, or they’re unaware that they can scroll through the list.
  • they can cause accessibility issues. On some devices the list of options cannot be zoomed, which means that some people with visual impairments cannot use them.

To avoid dropdowns consider how to present the list of options:

  • can you present it as a list of radio buttons. Even if the page is long users find these easier to use sometimes it’s better to just let users type their response as free text can the long list be broken into multiple shorter lists by asking a few questions up-front to filter out options.

If you still require this design pattern, below is an example:

<fieldset class="c-fieldset">
  <label class="c-label" for="select1">Example dropdown select</label>
  <div class="c-select">
    <select id="select1">
      <option value="Please select">Please select</option>
      <option value="Option #1">Option #1</option>
      <option value="Option #2">Option #2</option>
      <option value="Option #3">Option #3</option>
      <option value="Option #4">Option #4</option>
      <option value="Option #5">Option #5</option>
    </select>
  </div>
</fieldset>