phx-react
Version:
PHX REACT
15 lines (14 loc) • 552 B
TypeScript
import type { LexicalCommand, LexicalEditor, NodeKey } from 'lexical';
import * as React from 'react';
export declare const RIGHT_CLICK_IMAGE_COMMAND: LexicalCommand<MouseEvent>;
export default function ImageComponent({ altText, caption, height, maxWidth, nodeKey, resizable, showCaption, src, width, }: {
altText: string;
caption: LexicalEditor;
height: 'inherit' | number;
maxWidth: number;
nodeKey: NodeKey;
resizable: boolean;
showCaption: boolean;
src: string;
width: 'inherit' | number;
}): React.JSX.Element;