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

input-color-picker

v1.0.5

Published

Color picker library produced in Angular language.

Readme

InputColorPicker

npm version license Angular

A lightweight Angular color picker component with an SVG-based palette, search input, and full ControlValueAccessor support for seamless Reactive Forms / ngModel integration. Ships with 1,700+ built-in colors.

Live Demo

Demo


Installation

npm install input-color-picker

Quick Start

import { Component } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { InputColorPickerComponent } from 'input-color-picker'

@Component({
  selector: 'app-example',
  imports: [FormsModule, InputColorPickerComponent],
  template: `
    <input-color-picker [(ngModel)]="selectedColor" />
    <p>Selected: {{ selectedColor }}</p>
  `
})
export class ExampleComponent {
  selectedColor = '#6366f1'
}

API

Inputs

| Property | Type | Default | Description | |----------|------|---------|-------------| | [col] | number | 40 | Number of color swatches per row. | | [palette] | Palette[] | 1,700+ built-in colors | Custom color palette array. | | [boxHeight] | number | 48 | Height of the trigger button in pixels. | | [colorWidth] | number | 20 | Width of each color swatch in pixels. | | [colorHeight] | number | 20 | Height of each color swatch in pixels. | | [placeholder] | string | 'Color selection' | Placeholder text when no color is selected. |

Forms Support

The component implements ControlValueAccessor and works with both template-driven and reactive forms.

// Template-driven
<input-color-picker [(ngModel)]="color" />

// Reactive Forms
<input-color-picker [formControl]="colorControl" />
<input-color-picker formControlName="color" />

Types

import { Palette, Color } from 'input-color-picker'

// Palette — each color entry in the picker
interface Palette {
  code: string   // Hex color code (e.g. '#ff3100')
  name: string   // Display name  (e.g. 'Red')
}

Custom Palette

import { Component } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { InputColorPickerComponent, Palette } from 'input-color-picker'

@Component({
  selector: 'app-custom',
  imports: [FormsModule, InputColorPickerComponent],
  template: `
    <input-color-picker
      [(ngModel)]="color"
      [palette]="brandColors"
      [col]="5"
      [colorWidth]="32"
      [colorHeight]="32"
      [placeholder]="'Pick a brand color'"
    />
  `
})
export class CustomComponent {
  color = ''

  brandColors: Palette[] = [
    { code: '#1877F2', name: 'Facebook Blue' },
    { code: '#1DA1F2', name: 'Twitter Blue' },
    { code: '#FF0000', name: 'YouTube Red' },
    { code: '#E4405F', name: 'Instagram Pink' },
    { code: '#0A66C2', name: 'LinkedIn Blue' },
  ]
}

Changelog

| Version | Description | |---------|-------------| | 1.0.5 | Angular 21 upgrade. Signal inputs, inject(), effect() migration. | | 1.0.4 | Standalone / SSR compatible. | | 1.0.3 | Modify package dependency version range. | | 1.0.2 | Remove package dependency. | | 1.0.0 | Initial release. |


License

MIT © HONG DAESIK