OptionalcategoryOptionalcolorsOverride colours.
OptionaldisabledDisable the toolbar button entirely.
TipTap editor instance the action operates on. null (e.g. before
the editor has initialised) renders the button in a disabled
state — clicking is a no-op.
OptionaliconRender only the icon (no label). Defaults to true since the button typically lives in a dense formatting toolbar.
OptionallabelsOverride labels (i18n).
Async hook into the host's AI backend. Receives the input text and the chosen prompt; returns the model's output. Throw or reject to surface an error in the popover.
Available prompt templates. The component filters by category
when provided. Hosts typically pass presets + the current teacher's
custom templates, merged.
OptionalsxMUI sx applied to the toolbar button.
Optional category filter. When set, only prompts whose
categorymatches (or is undefined) are shown.