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

ColorArea

Expression Extends:

class ColorArea extends BaseComponent(HTMLElement)

Mixin Extends:

HTMLElement, BaseComponent

A ColorPicker area component to select Saturation and Value

See:

Example:

Markup
<coral-colorpicker-colorarea></coral-colorpicker-colorarea>
JS constructor
new Coral.ColorPicker.ColorArea();

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

The ColorArea color string in hsla format.

public

Whether this field is disabled or not.

public

The ColorArea label.

public

The ColorArea x value.

public

The ColorArea y value.

Method Summary

Public Methods
public

focus()

Public Constructors

public constructor() source

Public Members

public color: String source

The ColorArea color string in hsla format.

  • hsla(0, 100%, 50%, 1) by default.
  • reflected

public disabled: Boolean source

Whether this field is disabled or not.

  • false by default.
  • reflected

public label: String source

The ColorArea label.

  • '' by default.
  • reflected

public x: String source

The ColorArea x value. value should be in multiple of x-step size.

  • 1 by default.
  • reflected

public y: String source

The ColorArea y value. value should be in multiple of y-step size.

  • 1 by default.
  • reflected

Public Methods

public focus() source