3.6.0 • Published 1 year ago

ngx-colors v3.6.0

Weekly downloads
576
License
MIT
Repository
github
Last release
1 year ago

size download

Demo and documentation

https://ngx-colors.web.app/

Preview

example gif

Installation

Compatibility

AngularLatest ngx-colors compatible
15Latest
143.1.4
133.1.4
123.0.5
113.0.5
103.0.5

Npm

npm install ngx-colors
Load the ngx-colors module in your app module:
import { NgxColorsModule } from 'ngx-colors';

@NgModule({
  ...
  imports: [
    ...
    NgxColorsModule
  ]
})

Overview and usage

This library is composed of two parts:

  1. ngx-colors-trigger: This directive can be applied to any html element turning it into a trigger that when clicked will open the color picker
  2. ngx-colors: This component is a premade button that will display the selected color.
Use it in your HTML template with ngModel:
<ngx-colors 
  ngx-colors-trigger 
  [(ngModel)]="color"
></ngx-colors>

You can select just one format:

<ngx-colors 
  ngx-colors-trigger 
  [(ngModel)]="color"
  [format] = "'hex'"
></ngx-colors>

Or you can choise some formats

<ngx-colors 
  ngx-colors-trigger 
  [(ngModel)]="color"
  [formats]="['hex','cmyk']"
></ngx-colors>
Or with Reactive Forms:
<form class="example-form">
  <ngx-colors
    ngx-colors-trigger
    style="display: inline-block; margin:5px;"
    [formControl]="colorFormControl"
  ></ngx-colors>
</form>
3.6.0

1 year ago

3.5.3

1 year ago

3.4.0

2 years ago

3.2.0

2 years ago

3.3.0

2 years ago

3.5.2

2 years ago

3.5.1

2 years ago

3.5.0

2 years ago

3.1.3

3 years ago

3.1.4

3 years ago

3.1.2

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.5

3 years ago

2.10.2

4 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.10.1

4 years ago

2.10.0

4 years ago

2.9.0

4 years ago

2.8.0

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.2

4 years ago

2.6.1

4 years ago

2.6.0

4 years ago

2.5.0

5 years ago

2.4.1

5 years ago

2.3.0

5 years ago

2.4.0

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago