UNPKG

phx-react

Version:

PHX REACT

19 lines (18 loc) 660 B
import type { Position } from './InlineImageNode'; import type { LexicalEditor, NodeKey } from 'lexical'; import * as React from 'react'; /** * Renders an inline image node with selection, resize, and caption behavior. * @param props Inline image component props. * @returns Inline image decorator element. */ export default function InlineImageComponent({ altText, caption, height, nodeKey, position, showCaption, src, width, }: { altText: string; caption: LexicalEditor; height: 'inherit' | number; nodeKey: NodeKey; showCaption: boolean; src: string; width: 'inherit' | number; position: Position; }): React.JSX.Element;