UNPKG

@mantine/tiptap

Version:

Rich text editor based on tiptap

24 lines (23 loc) 1.32 kB
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 @default false */ disableTooltips?: boolean; /** Initial state for determining whether the link should be an external @default false */ 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; }>;