Hooks and components for consuming remirror with your fave framework React.
Overall
score
36%
Evaluation — 36%
↑ 1.09xAgent success when using this tile
Create a React editor component that exposes focus-aware UI, keyboard shortcut handling, and history reporting for a collaborative note-taking surface.
>>> at the current block position. @testUndo: 2 | Redo: 1) that update whenever the editor history changes. @testonEvent callback fires on focus gain, focus loss, and the shortcut insertion, providing the event type and a payload with the latest selection text or the position of the inserted marker. @test@generates
export interface ShortcutHistoryEventPayload {
selectionText?: string;
markerPosition?: number;
undoCount?: number;
redoCount?: number;
}
export interface ShortcutHistoryProps {
initialContent?: string;
toolbarRef?: React.RefObject<HTMLElement>;
onEvent?: (details: { type: 'focus' | 'blur' | 'undo' | 'redo' | 'shortcut'; payload?: ShortcutHistoryEventPayload }) => void;
}
export function ShortcutHistoryEditor(props: ShortcutHistoryProps): JSX.Element;Provides the React bindings, hooks, and history support used to wire focus, keyboard, and event handling into the editor.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10