@witchcraft/editor
    Preparing search index...

    Type Alias MenuRenderInfo

    type MenuRenderInfo = {
        component: Component;
        popupOptions?: {
            pinToItemDistance?: number | ((state: EditorState) => number);
        };
        props?: (editor: Editor) => Record<string, any>;
    }
    Index

    Properties

    component: Component
    popupOptions?: { pinToItemDistance?: number | ((state: EditorState) => number) }

    Type Declaration

    • OptionalpinToItemDistance?: number | ((state: EditorState) => number)

      Attempts to pin the mark menu to the top of the item if the cursor is this close or less to it. Set to a number greater than zero or return a number greater than 0 to enable it.

    props?: (editor: Editor) => Record<string, any>