OptionalattrsOptionalchangeThe user changed the color (not fired by setColor).
OptionalclsAdditional CSS classes.
The color at start. null: no color is shown.
OptionalcontentChild content (components, strings, or HTML).
OptionaldisabledComponent is initialy disabled.
Optionaldom_DOM event listeners.
OptionalexistingExisting DOM element to wrap.
OptionalflexEnables flex layout (boolean) or sets flex-grow (number).
OptionalformatHow the field writes the color. "rgb" by default: rgb(r,g,b). "hex": #rrggbb.
OptionalheightHeight (px or string like "50%").
OptionalhiddenComponent is initialy hidden.
OptionalidElement ID.
OptionalnameName of the field: with it, a Form reads and writes the color (as "#rrggbb").
OptionalnsNamespace for SVG/MathML elements.
OptionalnullableThe field may have no color: emptied, or "no color" picked.
OptionalpickerA click on the swatch opens a color picker.
OptionalstretchOptionalstyleInline CSS styles.
OptionalswatchesColors offered in the picker. A function is called each time the picker opens: the list may change with time.
OptionaltagOptional HTML tag to use for the box.
OptionaltooltipTooltip text.
OptionalwidthWidth (px or string like "50%" or "3em").
HTML attributes.