nxt-color-picker
Version:
Color picker widget for Angular
41 lines (29 loc) • 1.11 kB
Markdown
# Angular color picker
[](https://github.com/Liquid-JS/nxt-components/blob/master/LICENSE)
[](https://www.npmjs.com/package/nxt-color-picker)
[](https://www.npmjs.com/package/nxt-color-picker)
A color picker widget for Angular with no dependencies.
## Quick links
- [Demo](https://liquid-js.github.io/nxt-components/demo/color-picker)
- [Getting started](https://liquid-js.github.io/nxt-components/demo/color-picker/getting-started)
- [API docs](https://liquid-js.github.io/nxt-components/nxt-color-picker)
### Installing
```sh
npm install --save nxt-color-picker
```
### Import color picker module
```ts
import { ColorPickerModule } from 'nxt-color-picker'
@NgModule({
...
imports: [
...
ColorPickerModule
]
})
```
### Include it in HTML template
```html
<input [(nxtColor)]="color"
[style.background]="color"/>
```