interface ColorPickerOptions {
    disabledReason?: null | string;
    id: string;
    label: string;
    live?: boolean;
    openOverlay?: (el: HTMLElement, opts?: OverlayOptions) => () => void;
    translate?: WidgetTranslator;
    value: unknown;
    onChange(value: string): void;
}

Hierarchy (View Summary)

Properties

disabledReason?: null | string
id: string
label: string
live?: boolean
openOverlay?: (el: HTMLElement, opts?: OverlayOptions) => () => void

Use the host's overlay stack to escape scrolling ancestors and share focus/Escape ownership.

Type declaration

    • (el: HTMLElement, opts?: OverlayOptions): () => void
    • Show el over the widget: positioned from opts.anchor (or centred as a dialog), focus-trapped, closed by Escape and by a press outside. Returns the closer.

      Parameters

      Returns () => void

translate?: WidgetTranslator

Translates widget-owned text. Omit to preserve English rendering.

value: unknown

Methods