mat-color-picker
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

MatColorPicker

npm version NPM downloads

Small on size, big on features! MatColorPicker is created with Angular Material and CDK.

alt text

Install

step: 1

We use some components from Material. To be able to use this component you have to install @angular/animations. If you follow all the steps on Material Guide, you already have this step done.

    npm install --save @angular/animations

Note: @angular/animations uses the WebAnimation API that isn't supported by all browsers yet. If you want to support Material component animations in these browsers, you'll have to include a polyfill.

import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
 
@NgModule({
  ...
  imports[BrowserAnimationsModule],
  ...
})
export class PizzaPartyAppModule { }

If you don't want to add another dependency to your project, you can use the NoopAnimationsModule.

import {NoopAnimationsModule} from '@angular/platform-browser/animations';
 
@NgModule({
  ...
  imports[NoopAnimationsModule],
  ...
})
export class PizzaPartyAppModule { }

step: 2

Install the component

    npm install mat-color-picker

step: 3

Import the component in your module.

    import { MatColorPickerModule } from 'mat-color-picker';
 
@NgModule({
  imports: [
    ...
    MatColorPickerModule
    ...
  ],
  ...
})

How to use

    <mat-color-picker></mat-color-picker>

For more example you can our app-demo folder or read the full documentation

License

The MIT License (MIT) Copyright (c) 2018

Sponsors

alt text

Package Sidebar

Install

npm i mat-color-picker

Weekly Downloads

168

Version

1.4.3

License

MIT

Unpacked Size

13.7 MB

Total Files

21

Last publish

Collaborators

  • hayko