UNPKG

dmeditor

Version:

dmeditor is a block-style visual editor. Data is in json format.

23 lines (22 loc) 637 B
import { ReactNode } from 'react'; import { type DME } from '../../../../core/types'; interface ImageSettings { width: number; height: number; inline?: boolean; scale?: number; align?: 'left' | 'center' | 'right'; float?: boolean; } interface ImageProps { mode: DME.WidgetRenderProps['mode']; attributes: Record<string, unknown>; children: ReactNode; element: { url: string; justifyContent?: string; setting: Required<ImageSettings> & Partial<Node>; } & Node; } declare const Image: (props: ImageProps) => import("react/jsx-runtime").JSX.Element; export default Image;