Trilium Frontend API
    Preparing search index...

    Interface ColorPickerProps

    interface ColorPickerProps {
        className?: string;
        currentValue: string;
        disabled?: boolean;
        indeterminate?: boolean;
        presets?: string[];
        tooltips?: { clear?: string; set?: string; setCustom?: string };
        onChange(newValue: string): void;
    }
    Index
    className?: string
    currentValue: string

    The current CSS color (e.g. #ff8800). null means "no color".

    disabled?: boolean
    indeterminate?: boolean

    Renders no cell as selected, for when the picker stands for several targets that don't agree on a color. Picking still applies to all of them.

    presets?: string[]

    Preset swatches shown in the row. Defaults to a curated palette.

    tooltips?: { clear?: string; set?: string; setCustom?: string }

    Overrides the cell tooltips, for callers that can word them more specifically.

    • Called with the newly picked color, or null when the color is cleared.

      Parameters

      • newValue: string

      Returns void