UNPKG

@meonode/ui

Version:

A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.

13 lines 663 B
import { type ReactElement } from 'react'; /** * Style registry for Emotion to support SSR/streaming in Next.js App Router. * * - Creates a single Emotion cache instance in compat mode. * - Uses `useServerInsertedHTML` to inline critical CSS collected during render. * @param children React subtree that consumes Emotion styles. * @returns React element that provides the cache and injects critical CSS during SSR. */ export default function StyleRegistry({ children }: { children: ReactElement; }): ReactElement<import("../main").FinalNodeProps, string | import("react").JSXElementConstructor<any>>; //# sourceMappingURL=style-registry.client.d.ts.map