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

    Interface AssignmentToolbarProps

    Props for the AssignmentToolbar component.

    The toolbar provides formatting controls for the TipTap editor. It shares the same toolbar structure as the NoteEditor but uses assignment-specific customization values.

    interface AssignmentToolbarProps {
        colors: AssignmentEditorColors;
        disabled?: boolean;
        editor: Editor | null;
        enableFileEmbeds?: boolean;
        enableHighlight?: boolean;
        enableTableSupport?: boolean;
        enableTaskLists?: boolean;
        enableTextColor?: boolean;
        endAdornment?: ReactNode;
        icons: AssignmentEditorIcons;
        labels: AssignmentEditorLabels;
        onInsertEmbed?: () => void;
        styles: AssignmentEditorStyles;
    }
    Index

    Properties

    Custom colors

    disabled?: boolean

    Whether toolbar is disabled

    editor: Editor | null

    TipTap editor instance

    enableFileEmbeds?: boolean

    Show the "Insert file" button. The button is rendered iff this is true and onInsertEmbed is supplied.

    enableHighlight?: boolean

    Enable highlight button

    enableTableSupport?: boolean

    Enable table controls

    enableTaskLists?: boolean

    Enable task list button

    enableTextColor?: boolean

    Enable text color button (default: true)

    endAdornment?: ReactNode

    Optional inline content rendered inside the toolbar's flex container at the very end (after "Insert file"). Lets a host append controls (e.g. an AI Magic button) without rebuilding the toolbar.

    Custom icons

    Custom labels

    onInsertEmbed?: () => void

    Click handler for the "Insert file" button.

    Custom styles