@astro-tei/react
Version:
Astro integration for TEI as Custom Elements with React support
21 lines • 754 B
TypeScript
import React from "react";
import type { PropsWithChildren } from "react";
export interface TEIComponentProps {
element: HTMLElement;
content?: React.ReactNode[];
}
export interface TEIComponentMap {
[tagName: string]: React.ComponentType<TEIComponentProps>;
}
interface ComponentMapProviderProps {
componentMap: TEIComponentMap;
}
export declare const ComponentMapProvider: React.FC<PropsWithChildren<ComponentMapProviderProps>>;
export declare const TEINode: ({ node }: {
node: Node;
}) => string | import("react/jsx-runtime").JSX.Element | null;
export declare const TEINodes: ({ nodes }: {
nodes: Node[] | NodeListOf<ChildNode>;
}) => import("react/jsx-runtime").JSX.Element[];
export {};
//# sourceMappingURL=TEINode.d.ts.map