ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
18 lines (17 loc) • 603 B
TypeScript
export declare const HTMLElementSSR: () => {
new (): HTMLElement;
prototype: HTMLElement;
};
export declare const RanElement: {
new (): HTMLElement;
prototype: HTMLElement;
};
/**
* Rendering utility for RanUI components in SSR environments.
* Accepts a component instance and returns its HTML string with Declarative Shadow DOM.
*/
export declare const renderToString: (component: any) => string;
/**
* Convenience helper to render a tag with attributes and children manually.
*/
export declare const h: (tag: string, props?: Record<string, string>, ...children: any[]) => string;