Color Selector For Angular 5+

Author: bytelabsco
Publish Date:
Official Page: Go to website
Views Total: 1,649
License: MIT

Description:

ngx-color-selector provides a simple interface for selecting from a predefined set of colors.

Installation:

# NPM
$ npm install @bytelabsco/ngx-color-selector --save

Usage:

import { NgModule } from '@angular/core';
import { BytelabsColorSelectorModule } from '@bytelabsco/ngx-color-selector';

@NgModule({
  imports: [
  BytelabsColorSelectorModule
  ],
})
export class AppModule {}
<bytelabs-color-selector [(color)]="currentColor"></bytelabs-color-selector>

Default options.

palette?: IColor[];
direction?: PaletteDirection;
itemSize?: ISwatchSize;
itemsPer?: number;
position?: PalettePosition;

Preview:

Color Selector For Angular 5+

Leave a Reply