Reference Source
import {ColorInput} from '@adobe/coral-spectrum'
public class | source

ColorInputItem

Expression Extends:

class ColorInputItem extends BaseComponent(HTMLElement)

Mixin Extends:

HTMLElement, BaseComponent

A ColorInput Item component

See:

Example:

Markup
<coral-colorinput-item></coral-colorinput-item>
JS constructor
new Coral.ColorInput.Item();

Member Summary

Public Members
public

Whether the Item is selected.

public

The value of the color.

Public Members

public selected: Boolean source

Whether the Item is selected.

  • false by default.
  • reflected

public value: String source

The value of the color. This value can be set in different formats (HEX, RGB, RGBA, HSB, HSL, HSLA and CMYK). Corrects a hex value, if it is represented by 3 or 6 characters with or without '#'.

e.g: HEX: #FFFFFF RGB: rgb(16,16,16) RGBA: rgba(215,40,40,0.9) HSB: hsb(360,100,100) HSL: hsl(360,100,100) HSLA: hsla(360,100%,100%, 0.9) CMYK: cmyk(0,100,50,0)

  • "" by default.
  • reflected