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

v0.1.0

Published

Kit UI Input components — KitInput, KitTextarea, KitPassword, KitSearch.

Readme

@kit-ng-ui/input

Text input components for Kit UI. Mirrors ant-design's Input family on Angular standalone + signals: KitInput, KitTextarea, KitPassword, KitSearch.

Install

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

Styles

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

Use

import { Component } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import {
  KitInputComponent,
  KitTextareaComponent,
  KitPasswordComponent,
  KitSearchComponent,
} from '@kit-ng-ui/input';

@Component({
  standalone: true,
  imports: [
    KitInputComponent,
    KitTextareaComponent,
    KitPasswordComponent,
    KitSearchComponent,
    ReactiveFormsModule,
  ],
  template: `
    <kit-input placeholder="Username" [formControl]="name" />
    <kit-input prefixIcon="user" placeholder="With prefix" />
    <kit-input addonBefore="https://" addonAfter=".com" placeholder="Domain" />
    <kit-input [allowClear]="true" [showCount]="true" [maxLength]="20" />

    <kit-textarea placeholder="Description" [autoSize]="{ minRows: 2, maxRows: 6 }" />

    <kit-password placeholder="Password" />

    <kit-search enterButton="Search" (search)="onSearch($event)" />
  `,
})
export class InputDemo {
  name = new FormControl('');
  onSearch(value: string) { console.log(value); }
}

API

<kit-input>

| Input | Type | Default | | ------------------ | ----------------------------------------------------------- | ------------ | | size | 'sm' \| 'md' \| 'lg' | 'md' | | variant | 'outlined' \| 'filled' \| 'borderless' \| 'underlined' | 'outlined' | | status | 'default' \| 'error' \| 'warning' | 'default' | | disabled | boolean | false | | readonly | boolean | false | | type | string (native input type) | 'text' | | placeholder | string \| null | null | | maxLength | number \| null | null | | showCount | boolean | false | | allowClear | boolean | false | | block | boolean | false | | prefix | string \| null — leading text | null | | prefixIcon | string \| null — icon name | null | | suffix | string \| null — trailing text | null | | suffixIcon | string \| null — icon name | null | | addonBefore | string \| null | null | | addonAfter | string \| null | null |

Outputs: (valueChange), (inputEvent), (changeEvent), (focusEvent), (blurEvent), (pressEnter), (clear).

Implements ControlValueAccessor — works with template-driven (ngModel) and reactive (formControl) forms.

<kit-textarea>

Same shared inputs plus [rows], [cols], and [autoSize]:

autoSize: { minRows?: number; maxRows?: number } | boolean | null

<kit-password>

Same shared inputs plus [visibilityToggle] (default true) to render the show/hide eye button.

<kit-search>

Same shared inputs plus:

| Input | Type | Default | | ------------- | ------------------- | ------- | | enterButton | boolean \| string | false | | loading | boolean | false |

enterButton = true renders an icon-only search trigger inside the input. Pass a string to render a separate, labelled trigger button fused to the trailing edge. Emits (search) with the current value on Enter or trigger click.

Behavior notes

  • All four components implement ControlValueAccessor. They forward aria-invalid, aria-describedby, and aria-required so they integrate cleanly with the future @kit-ng-ui/form FormItem.
  • Focus state is reflected on the wrapper element with kit-input--focused. The wrapper, not the native control, owns the focus ring so prefix / suffix / addons stay inside it.
  • allowClear is shown only when the input is editable and the value is non-empty. The click handler uses mousedown so it fires before the input loses focus.
  • Textarea autoSize recomputes height on every value change. Set maxRows to clamp tall inputs; overflow becomes scrollable once it exceeds maxRows.
  • Search emits (search) on Enter as well as button click. Native form submission is suppressed via preventDefault.