import type { ReactElement } from "react"; import React from "react"; export type DOMRenderFunction = (props: React.JSX.IntrinsicElements[E], renderProps: T) => ReactElement; export interface DOMRenderProps { /** * Overrides the default DOM element with a custom render function. * This allows rendering existing components with built-in styles and behaviors * such as router links, animation libraries, and pre-styled components. * * Requirements: * * * You must render the expected element type (e.g. if `