Orca Note Plugin API Documentation
    Preparing search index...

    Interface ToolbarButton

    Configuration for a toolbar button in the editor toolbar. Buttons can execute commands or display menus with additional options.

    interface ToolbarButton {
        background?: string;
        color?: string;
        command?: string;
        icon: string;
        menu?: (close: () => void, state?: any) => ReactNode;
        tooltip: string;
    }
    Index

    Properties

    background?: string

    Optional background color for the button

    color?: string

    Optional text color for the button

    command?: string

    Optional command ID to execute when clicked

    icon: string

    Icon identifier (usually a Tabler Icons class)

    menu?: (close: () => void, state?: any) => ReactNode

    Optional function to render a dropdown menu when clicked

    tooltip: string

    Tooltip text displayed on hover