Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-color-palette

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-color-palette

Angular library which provides color picker functionality to your angular application.

  • 0.0.12
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Angular library which provides color picker functionality to your angular application.

A color picker is a graphical user interface widget, usually found within graphics software or online, used to select colors and, in some cases, to create color schemes.

npm i ngx-color-palette

Color picker (ngx-color-palette)

Now position your color picker with additional attribute.

top, bottom, left, right, bottom-left, bottom-right, top-left, top-right, center



Import

Import the module on your app.module.ts file as follow.

import { NgxColorPaletteModule } from 'ngx-color-palette';

Then import the module as follow on imports array

NgxColorPaletteModule

Integration

on .html

<ngx-color-palette  [color]="color" [squared]="false" [position]="position" (currentColor)="currentColor($event)"></ngx-color-palette>

on .ts

color = '#FBC02D'; // any color value (name / hex / rgb / hsl)

public currentColor(event: any) { // to receive output
  this.color = event.color;
}
FieldtypeInfo
colorstringVariable to bind
squaredbooleanNon-rounded egdes
currentColorevent / methodto get changed / emitted value
postionstringplace the palette
top, bottom, left, right, bottom-left, bottom-right, top-left, top-right, center

Code integration

To use this package as a service npm i ngx-color-palette install this on the root angular project .

Note: Don't forget to run this commend npm i ngx-color-palette on root folder or else it will throw error.



Keywords

FAQs

Package last updated on 06 Aug 2024

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