UNPKG

@mantine/tiptap

Version:

Rich text editor based on tiptap

21 lines (20 loc) 962 B
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, `false` by default */ sticky?: boolean; /** Sets top style to offset elements with fixed position, `0` by default */ 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; }>;