@podlite/to-jsx
Version:
JSX converter for Podlite markup language
24 lines (23 loc) • 800 B
TypeScript
import * as React from 'react';
import { PodNode, PodliteExport } from '@podlite/schema';
export declare type CreateElement = typeof React.createElement;
export interface WrapElement {
(node: PodNode, children: React.ReactNode[] | React.ReactNode, ctx: any): JSX.Element;
}
export declare const Podlite: React.FC<{
[key: string]: any;
children?: string;
file?: string;
plugins?: any;
wrapElement?: WrapElement;
tree?: PodliteExport;
}>;
export declare const TestPodlite: ({ children, ...options }: {
[x: string]: any;
children: any;
}) => React.JSX.Element;
export declare const makeTestPodlite: (podlite?: import("@podlite/schema").Podlite) => ({ children, ...options }: {
[x: string]: any;
children: any;
}) => React.JSX.Element;
export default Podlite;