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/tag

v0.1.0

Published

Kit UI Tag component — labelled chip with preset / custom colors, closable + checkable variants.

Readme

@kit-ng-ui/tag

Tag chip + checkable filter chip for Kit UI. Mirrors ant-design's Tag and Tag.CheckableTag.

Install

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

Styles

// app styles.scss
@use '@kit-ng-ui/core/styles' as *;
@use '@kit-ng-ui/tag/styles' as tag;

Namespaces must be distinct from other @kit-ng-ui/<pkg>/styles imports.

Use

import { Component, signal } from '@angular/core';
import { KitTagComponent, KitCheckableTagComponent } from '@kit-ng-ui/tag';

@Component({
  standalone: true,
  imports: [KitTagComponent, KitCheckableTagComponent],
  template: `
    <kit-tag>plain</kit-tag>
    <kit-tag color="success">success</kit-tag>
    <kit-tag color="#5b21b6">custom</kit-tag>
    <kit-tag icon="github" closable (close)="hide()">closable</kit-tag>
    <kit-checkable-tag [(checked)]="picked">Books</kit-checkable-tag>
  `,
})
export class Demo {
  protected readonly picked = signal(false);
  protected hide(): void { /* ... */ }
}

API

<kit-tag>

| Input | Type | Default | Description | | ---------------- | -------------------------------------------- | ---------- | --------------------------------------------------------------------------------- | | color | KitTagPresetColor \| string \| null | null | Preset name OR any CSS color string. See preset table below. | | size | 'sm' \| 'md' | 'md' | Tag height. | | bordered | boolean | true | When false, removes the border for a filled chip look. | | closable | boolean | false | Renders a close button on the trailing edge. | | icon | string \| null | null | Icon name from the registry, rendered before the label. | | closeIcon | string | 'close' | Icon name for the close trigger. | | closeAriaLabel | string | 'Close' | a11y label for the close button. | | visible | boolean | true | When false, the tag is unmounted entirely. |

| Output | Payload | Description | | ------- | ------------- | -------------------------------------------------------------------- | | close | MouseEvent | Fires on close-button click. The host owns the hide decision. |

Preset colors

| Preset | Background / border / text source | | ------------ | ----------------------------------------- | | default | --kit-color-fill / border / text | | success | --kit-color-success-* | | processing | --kit-color-info-* | | error | --kit-color-error-* | | warning | --kit-color-warning-* | | violet | --kit-color-brand-* (brand violet ramp) | | blue | --kit-color-info-* | | green | --kit-color-success-* | | gold | --kit-color-warning-* | | red | --kit-color-error-* |

Any other string passed to [color] is treated as a CSS color and rendered via color-mix for background/border with the raw value for text.

<kit-checkable-tag>

Toggleable chip for filters / segmented selection.

| Input | Type | Default | Description | | ---------- | ---------------- | -------- | --------------------------------- | | checked | boolean (model)| false | Two-way bindable via [(checked)]. | | size | 'sm' \| 'md' | 'md' | Tag height. | | disabled | boolean | false | Disabled state. |

| Output | Payload | Description | | --------- | ---------- | ------------------------------------ | | change | boolean | Fires after checked flips, with the new value. |

Behavior notes

  • The close button does NOT auto-hide the tag. The host decides whether to set [visible]="false" or *ngIf the tag out — this keeps the component free of "auto-close vs controlled" ambiguity.
  • Custom colors use color-mix(in srgb, <color> 12%/40%, var(--kit-color-bg)) for background/border tint. Browsers without color-mix support fall back to the raw color (still readable, just bolder).
  • <kit-checkable-tag> renders a native <button> and uses aria-pressed so screen readers announce the toggle state without extra wiring.