@mantine/tiptap
Version:
Rich text editor based on tiptap
21 lines (20 loc) • 952 B
TypeScript
import { BoxProps, CompoundStylesApiProps, ElementProps, Factory } from '@mantine/core';
export type RichTextEditorToolbarStylesNames = 'toolbar';
export interface RichTextEditorToolbarProps extends BoxProps, CompoundStylesApiProps<RichTextEditorToolbarFactory>, ElementProps<'div'> {
/** Determines whether `position: sticky` styles should be added to the toolbar @default false */
sticky?: boolean;
/** Sets top style to offset elements with fixed position @default 0 */
stickyOffset?: React.CSSProperties['top'];
}
export type RichTextEditorToolbarFactory = Factory<{
props: RichTextEditorToolbarProps;
ref: HTMLDivElement;
stylesNames: RichTextEditorToolbarStylesNames;
compound: true;
}>;
export declare const RichTextEditorToolbar: import("@mantine/core").MantineComponent<{
props: RichTextEditorToolbarProps;
ref: HTMLDivElement;
stylesNames: RichTextEditorToolbarStylesNames;
compound: true;
}>;