Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
68
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Purchase

Color Picker

Color Picker is a form control for choosing a custom color. Use it in theme settings, brand color forms, design editors, chart settings, or any form where users need to pick an exact color value.

Use it for:
  • Choosing a custom color through saturation, hue, and optional opacity controls.
  • Binding color values in Angular forms or with ngModel.
  • Returning color values as hex, rgb, hsl, or hsv.
  • Showing a small color preview with ngs-color-picker-thumbnail.
  • Opening the picker from a thumbnail, button, or form-field suffix with ngsColorPickerTriggerFor.

Do not use Color Picker only to display status color, legend color, decorative swatches, badges, or fixed color choices. For a fixed set of colors, use Color Switcher.

The NgStarter Angular Color Picker component lets you let users choose or edit a color value. Use in branding, theme customization, design tools, and visual editors. It includes examples for Basic Color Picker, Color Picker With Popover, and Input With Color Picker.

Basic Color Picker

Use the inline color picker when a form or editor needs a full custom color control.

Selected color: green

Color Picker With Popover

Use a thumbnail trigger when the picker should open from a compact color preview.

Selected color: green

Input With Color Picker

Use a form-field suffix trigger when users need to see the selected value and open the picker from the same field.

Selected color: #526BD6