UNPKG

piral-react

Version:

Plugin for integrating React 16+ components in Piral.

14 lines (13 loc) 464 B
import type { ForeignComponent, BaseComponentProps } from 'piral-core'; import type { ComponentType } from 'react'; export interface ReactConverterOptions { /** * Defines the name of the root element. * @default piral-slot */ rootName?: string; } export declare function createConverter(config?: ReactConverterOptions): { <TProps extends BaseComponentProps>(root: ComponentType<TProps>): ForeignComponent<TProps>; Extension: any; };