UNPKG

mui-tiptap

Version:

A Material-UI (MUI) styled WYSIWYG rich text editor, using Tiptap

24 lines (23 loc) 1.04 kB
import { type SxProps } from "@mui/material/styles"; import { type Editor } from "@tiptap/core"; import type { ReactNode } from "react"; import { type ViewLinkMenuContentClasses } from "./ViewLinkMenuContent.classes"; export type ViewLinkMenuContentProps = { editor: Editor; onCancel: () => void; onEdit: () => void; onRemove: () => void; /** Override default text content/labels used within the component. */ labels?: { /** Content shown in the button used to start editing the link. */ viewLinkEditButtonLabel?: ReactNode; /** Content shown in the button used to remove the link. */ viewLinkRemoveButtonLabel?: ReactNode; }; /** Override or extend existing styles. */ classes?: Partial<ViewLinkMenuContentClasses>; /** Provide custom styles. */ sx?: SxProps; }; /** Shown when a user is viewing the details of an existing Link for Tiptap. */ export default function ViewLinkMenuContent(inProps: ViewLinkMenuContentProps): import("react/jsx-runtime").JSX.Element;