UNPKG

@cf-wasm/og

Version:

Generate Open Graph Images dynamically from HTML/CSS without a browser.

18 lines 634 B
import { ParserOptions as ParserOptions$1 } from "@hedgedoc/html-to-react"; import { ReactElement } from "react"; //#region src/html-to-react.d.ts interface ParserOptions extends ParserOptions$1 { tailwind?: boolean | 'data' | 'class'; } /** * A helper function to parse html string to a {@link ReactElement} like object * * @param html The html string to parse * @param options Options * * @returns The {@link ReactElement} */ declare const htmlToReact: (html: string, options?: ParserOptions) => ReactElement; //#endregion export { ParserOptions, htmlToReact, htmlToReact as t }; //# sourceMappingURL=html-to-react.d.ts.map