Trilium Frontend API
    Preparing search index...

    Interface ButtonProps

    interface ButtonProps {
        buttonRef?: RefObject<HTMLButtonElement>;
        className?: string;
        disabled?: boolean;
        disabledTooltip?: string;
        icon?: string;
        keyboardShortcut?: string;
        kind?: "primary" | "secondary" | "lowProfile";
        name?: string;
        onClick?: h.JSX.MouseEventHandler<HTMLButtonElement>;
        size?: "small" | "normal" | "micro";
        style?: CSSProperties;
        text: ComponentChildren;
        title?: string;
        triggerCommand?: keyof CommandMappings;
    }
    Index

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

    className?: string
    disabled?: boolean
    disabledTooltip?: string

    Why the button is off, shown on hover while disabled. Ignored otherwise.

    icon?: string
    keyboardShortcut?: string
    kind?: "primary" | "secondary" | "lowProfile"
    name?: string

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

    Handed the event, which the button already forwarded before this said so: some handlers read the press's own target to know where to act — opening a note in the tab the button stands in, for one (see openInCurrentNoteContext).

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