UNPKG

@etsoo/materialui

Version:

TypeScript Material-UI Implementation

27 lines (26 loc) 688 B
import { HTMLAttributes } from "react"; /** * Custom HTML element properties * 自定义 HTML 元素属性 */ export type HtmlDivProps = HTMLAttributes<HTMLElement> & { /** * Display style * 显示样式 */ displayStyle?: string; }; declare global { namespace JSX { interface IntrinsicElements { "html-div": React.HTMLAttributes<HTMLElement>; } } } /** * Custom HTML element that sanitizes and displays HTML content * 自定义 HTML 元素,用于清理和显示 HTML 内容 * @param props Properties * @returns Component */ export declare function HtmlDiv(props: HtmlDivProps): import("react/jsx-runtime").JSX.Element;