Hiyve Components - v1.0.0
    Preparing search index...

    Interface AssignmentEditorRenderProps

    Render-prop slots for AssignmentEditor. Each slot receives the editor's default-rendered content so the host can wrap or augment it rather than rebuild from scratch.

    interface AssignmentEditorRenderProps {
        renderToolbar?: (
            editor: Editor | null,
            defaultContent: ReactNode,
        ) => ReactNode;
        renderToolbarExtras?: (editor: Editor | null) => ReactNode;
    }
    Index

    Properties

    renderToolbar?: (editor: Editor | null, defaultContent: ReactNode) => ReactNode

    Custom render function for the rich-text toolbar. Receives the live TipTap editor instance and the editor's default toolbar content; the host can append extra buttons (e.g. AI Magic) by returning a wrapper around defaultContent.

    renderToolbarExtras?: (editor: Editor | null) => ReactNode

    Inline adornment rendered inside the default toolbar's flex container at the very end (after "Insert file"). Use this instead of renderToolbar when you just want to slot one extra control (e.g. an AI Magic button) into the existing toolbar without reconstructing it.