UNPKG

@visactor/react-vrender-utils

Version:
18 lines (17 loc) 562 B
import React from 'react'; import type { HTMLAttributes, PropsWithChildren } from 'react'; export type HtmlTransformAttrs = { x: number; y: number; scaleX: number; scaleY: number; rotateDeg: number; skewX: number; skewY: number; }; export type HtmlProps = PropsWithChildren<{ divProps?: HTMLAttributes<HTMLDivElement>; transform?: boolean; transformFunc?: (attrs: HtmlTransformAttrs) => HtmlTransformAttrs; }>; export declare const Html: ({ children, divProps, transform, transformFunc }: HtmlProps) => React.JSX.Element;