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

@kit-ng-ui/select

v0.2.0

Published

Kit UI Select — single, multi, tag, searchable.

Readme

@kit-ng-ui/select

A searchable select control with single, multiple, and tags modes. Mirrors ant-design Select's most common surface.

Install

pnpm add @kit-ng-ui/select @kit-ng-ui/core @kit-ng-ui/icons

Styles

@use '@kit-ng-ui/core/styles' as *;
@use '@kit-ng-ui/select/styles' as select;

Use

import { Component, signal } from '@angular/core';
import { KitSelectComponent } from '@kit-ng-ui/select';

@Component({
  standalone: true,
  imports: [KitSelectComponent],
  template: `
    <kit-select [options]="fruits" [(value)]="picked" placeholder="Pick a fruit" />

    <kit-select
      mode="multiple"
      [options]="fruits"
      [(value)]="picks"
      placeholder="Pick several"
      [allowClear]="true"
    />

    <kit-select [showSearch]="true" [options]="fruits" [(value)]="picked" placeholder="Search" />
  `,
})
export class SelectDemo {
  fruits = [
    { label: 'Apple', value: 'a' },
    { label: 'Banana', value: 'b' },
    { label: 'Cherry', value: 'c' },
  ];
  picked = signal<unknown>(null);
  picks = signal<ReadonlyArray<unknown>>([]);
}

API

| Input | Type | Default | | ----------------- | -------------------------------------------- | ----------- | | options | KitSelectOption[] | [] | | value | unknown \| unknown[] | null/[] | | mode | 'default' \| 'multiple' \| 'tags' | 'default' | | size | 'sm' \| 'md' \| 'lg' | 'md' | | status | 'default' \| 'error' \| 'warning' | 'default' | | disabled | boolean | false | | allowClear | boolean | false | | showSearch | boolean | false | | loading | boolean | false | | placeholder | string \| null | null | | maxTagCount | number \| null — collapse overflow into +N | null | | notFoundContent | string | 'No data' | | block | boolean — fill parent width | false |

Outputs: (valueChange), (searchChange), (openChange), (clear).

Implements ControlValueAccessor.

Keyboard

| Key | Action | | ----------- | --------------------------------------- | | ArrowDown | Open dropdown / move highlight down | | ArrowUp | Move highlight up | | Enter | Open dropdown / pick highlighted option | | Escape | Close dropdown | | Backspace | (multi/tags) remove last selected value |

Accessibility

  • The trigger is a role="combobox" with aria-haspopup="listbox" / aria-expanded; the dropdown is a role="listbox" and each row a role="option" with aria-selected.
  • Every rendered option gets a stable, unique id (derived from the control's own id), and the focused search input exposes aria-activedescendant pointing at the highlighted option while open — so screen readers announce each row as you arrow through the list (WCAG 4.1.2). It clears when the dropdown closes. The input also sets aria-controls to the listbox id while open.
  • Keyboard focus on the (closed) trigger draws the standard kit focus ring.
  • Labelling inputs: ariaLabel, ariaDescribedby, ariaInvalid, ariaRequired.

Behavior notes

  • mode="tags" lets the user enter free-text values that don't exist in [options]; pressing Enter with a non-empty search input creates a new tag.
  • The dropdown closes on outside click and on focusout when focus leaves the host.
  • This is a first-pass implementation. Not yet supported (TODO parity): virtual scrolling, async data with built-in loading source, option groups, custom option / tag templates, server-driven [loading] from a stream, dropdownRender. The component's (searchChange) output is the integration point for async sources today.