UNPKG

rvx

Version:

A signal based rendering library

25 lines 853 B
import { Attributes, TagNameMap } from "../element-common.js"; import { Content } from "../types.js"; /** * The jsx fragment component that returns it's children as is. */ export declare function Fragment(props: { children?: Content; }): Content; /** * Create an rvx jsx element. * * @param tagName The tag name. * @param attrs The attributes to set. * @returns The element. */ export declare function createElement<K extends keyof TagNameMap>(tagName: K, attrs: Attributes<TagNameMap[K]>): TagNameMap[K]; export declare function createElement<E extends Element>(tagName: string, attrs: Attributes<E>): E; /** * Set rvx jsx attributes. * * @param elem The element. * @param attrs The attributes to set. */ export declare function applyElement<E extends Element>(elem: E, attrs: Attributes<E>): void; //# sourceMappingURL=common.d.ts.map