Socket
Socket
Sign inDemoInstall

ngx-color-picker

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-color-picker

Color picker widget for Angular


Version published
Weekly downloads
159K
decreased by-2%
Maintainers
1
Weekly downloads
 
Created

What is ngx-color-picker?

ngx-color-picker is an Angular component library that provides a color picker widget. It allows users to select colors through a user-friendly interface, supporting various color formats such as HEX, RGB, and HSL. The package is highly customizable and can be integrated easily into Angular applications.

What are ngx-color-picker's main functionalities?

Basic Color Picker

This feature allows you to add a basic color picker to your Angular application. The selected color is bound to the 'color' variable in your component.

<color-picker [(color)]="color"></color-picker>

Preset Colors

This feature allows you to provide a set of preset colors that users can choose from. The 'presetColors' variable should be an array of color strings.

<color-picker [(color)]="color" [presetColors]="presetColors"></color-picker>

Output Events

This feature allows you to handle color change events. The 'onColorChange' method will be called whenever the user selects a new color.

<color-picker [(color)]="color" (colorChange)="onColorChange($event)"></color-picker>

Custom Styles

This feature allows you to customize the dimensions of the color picker. The 'cpWidth' and 'cpHeight' properties set the width and height of the color picker, respectively.

<color-picker [(color)]="color" [cpWidth]="200" [cpHeight]="200"></color-picker>

Other packages similar to ngx-color-picker

FAQs

Package last updated on 26 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc