Trilium Frontend API
    Preparing search index...

    Interface ButtonProps

    interface ButtonProps {
        buttonRef?: RefObject<HTMLButtonElement>;
        className?: string;
        disabled?: boolean;
        icon?: string;
        keyboardShortcut?: string;
        name?: string;
        onClick?: () => void;
        primary?: boolean;
        size?: "small" | "normal" | "micro";
        style?: CSSProperties;
        text: string;
        title?: string;
        triggerCommand?: keyof CommandMappings;
    }
    Index

    Properties

    Reference to the button element. Mostly useful for requesting focus.

    className?: string
    disabled?: boolean
    icon?: string
    keyboardShortcut?: string
    name?: string
    onClick?: () => void

    Called when the button is clicked. If not set, the button will submit the form (if any).

    primary?: boolean
    size?: "small" | "normal" | "micro"
    text: string
    title?: string
    triggerCommand?: keyof CommandMappings