@mantine/tiptap
Version:
Rich text editor based on tiptap
24 lines (23 loc) • 1.33 kB
TypeScript
import { BoxProps, CompoundStylesApiProps, Factory, PopoverProps } from '@mantine/core';
import { RichTextEditorControlBaseProps } from './RichTextEditorControl';
export type RichTextEditorLinkControlStylesNames = 'control' | 'linkEditor' | 'linkEditorDropdown' | 'linkEditorSave' | 'linkEditorInput' | 'linkEditorExternalControl';
export interface RichTextEditorLinkControlProps extends BoxProps, Omit<RichTextEditorControlBaseProps, 'classNames' | 'styles' | 'vars'>, CompoundStylesApiProps<RichTextEditorLinkControlFactory> {
/** Props passed down to Popover component */
popoverProps?: Partial<PopoverProps>;
/** Determines whether external link control tooltip should be disabled, `false` by default */
disableTooltips?: boolean;
/** Initial state for determining whether the link should be an external, `false` by default */
initialExternal?: boolean;
}
export type RichTextEditorLinkControlFactory = Factory<{
props: RichTextEditorLinkControlProps;
ref: HTMLButtonElement;
stylesNames: RichTextEditorLinkControlStylesNames;
compound: true;
}>;
export declare const RichTextEditorLinkControl: import("@mantine/core").MantineComponent<{
props: RichTextEditorLinkControlProps;
ref: HTMLButtonElement;
stylesNames: RichTextEditorLinkControlStylesNames;
compound: true;
}>;