Color Picker
Formsatlas-color-pickerExamples
Colour field
Pick a colour from the swatch or type a hex or rgb() value; the value is lowercase hex.
Pick a color
Hex such as #0d9488, or rgb().
Value: #0d9488
With opacity
With alpha, a slider sets the opacity and translucent colours are kept as #rrggbbaa.
Pick a color
The scrim behind dialogs.
Value: #00000052
API
Generated from the library source, so it always matches the code.
AtlasColorPickerComponent atlas-color-picker
| Input | Type | Default | Description |
|---|---|---|---|
| value two-way | string | '' | '' when empty. |
| alpha | boolean | false | #rrggbbaa . |
| placeholder | string | '#000000' | |
| disabled | boolean | false | |
| errors | readonly ValidationError.WithOptionalFieldTree[] | [] | [field] . |
| required | boolean | false | [field] . |
| invalid | boolean | false | [field] . |
| touched | boolean | false | [field] . |
| readonly | boolean | false | [field] . |
| pending | boolean | false | [field] . |
| name | string | '' | [field] . |
| ariaLabel | string | null | null | |
| inputId | string | undefined | undefined | id of the text box, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one. |
| ariaDescribedBy | string | null | null | aria-describedby , merged with the surrounding form field's hint or error. |
| class | string | '' | cn() ; yours win on conflicts. |
| Output | Payload | Description |
|---|---|---|
| touch | void |