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 floating action toolbar that anchors to the current text selection inside an existing Remirror editor. The toolbar should rely on the editor's floating positioning tools to follow selections, hide appropriately, and render custom action content.
offset prop shifts the toolbar away from the selection by the specified pixel distance. @testrenderActions callback, which receives the current selected text and active mark state. @test@generates
export type FloatingPlacement =
| 'top'
| 'top-start'
| 'top-end'
| 'bottom'
| 'bottom-start'
| 'bottom-end'
| 'left'
| 'left-start'
| 'left-end'
| 'right'
| 'right-start'
| 'right-end';
export interface FloatingToolbarProps {
placement?: FloatingPlacement;
offset?: number;
hideDelayMs?: number;
renderActions?: (context: {
selectedText: string;
activeMarks: Record<string, boolean>;
}) => React.ReactNode;
children?: React.ReactNode;
}
export function FloatingToolbar(props: FloatingToolbarProps): JSX.Element;Provides the editor context and floating positioning utilities required to anchor the toolbar to text selections.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10