@samatawy/diagrams
    Preparing search index...

    Interface ColorSelectConfig

    Configuration options for the ColorSelect control. Provide only the properties you want to override; defaults will be used for the rest.

    interface ColorSelectConfig {
        showSwatch?: boolean;
        showLabel?: boolean;
        showNativeInput?: "none" | "start" | "end" | "option";
        nativeInputAriaLabel?: string;
        showInheritOption?: boolean;
        hostClassName?: string;
        triggerClassName?: string;
        menuClassName?: string;
        optionClassName?: string;
        swatchClassName?: string;
        labelClassName?: string;
        nativeInputClassName?: string;
        selectedClassName?: string;
        openClassName?: string;
    }
    Index

    Properties

    showSwatch?: boolean

    Whether to show a color swatch in the trigger button. Default is true.

    showLabel?: boolean

    Whether to show a color label in the trigger button. Default is true. The label will display the color value or 'clear' for transparent.

    showNativeInput?: "none" | "start" | "end" | "option"

    Whether to show the native color input. Default is 'option'. 'start' - show at the start of the trigger button 'end' - show at the end of the trigger button 'option' - show as an option in the menu 'none' - do not show

    nativeInputAriaLabel?: string

    Aria label for the native color input. Default is 'Custom color'.

    showInheritOption?: boolean

    When true, prepends an 'inherit' option to the menu so the user can reset the value to the inherited default (e.g. fill color, diagram background). Default is false.

    hostClassName?: string

    Optional class name for the host element.

    triggerClassName?: string

    Optional class name for the trigger button.

    menuClassName?: string

    Optional class name for the menu element.

    optionClassName?: string

    Optional class name for the option elements.

    swatchClassName?: string

    Optional class name for the color swatch elements.

    labelClassName?: string

    Optional class name for the label elements.

    nativeInputClassName?: string

    Optional class name for the native input element.

    selectedClassName?: string

    Optional class name for the selected state.

    openClassName?: string

    Optional class name for the open state.