@samatawy/diagrams
    Preparing search index...

    Interface FontSelectConfig

    Configuration options for the font select control. Provide only the properties you want to customize. All other properties will use default values.

    interface FontSelectConfig {
        fonts?: string[];
        showPreview?: boolean;
        hostClassName?: string;
        triggerClassName?: string;
        menuClassName?: string;
        optionClassName?: string;
        previewClassName?: string;
        labelClassName?: string;
        selectedClassName?: string;
        openClassName?: string;
    }
    Index

    Properties

    fonts?: string[]

    Optional array of font family names to display in the dropdown. If not provided, a default set of common fonts will be used. If an empty array is provided, the default fonts will be used.

    showPreview?: boolean

    Whether to show a preview of the selected font in the trigger button.

    hostClassName?: string

    Custom class name for the host element.

    triggerClassName?: string

    Custom class name for the trigger button.

    menuClassName?: string

    Custom class name for the dropdown menu.

    optionClassName?: string

    Custom class name for each option in the dropdown.

    previewClassName?: string

    Custom class name for the font preview element.

    labelClassName?: string

    Custom class name for the label element.

    selectedClassName?: string

    Custom class name for the selected option.

    openClassName?: string

    Custom class name for the open state.