piral-vue
Version:
Plugin for integrating Vue@2 components in Piral.
19 lines (18 loc) • 651 B
TypeScript
import type { ForeignComponent, BaseComponentProps } from 'piral-core';
import { Component } from 'vue';
export interface VueConverterOptions {
/**
* Defines the name of the extension component.
* @default extension-component
*/
selector?: string;
/**
* Defines the name of the root element.
* @default piral-slot
*/
rootName?: string;
}
export declare function createConverter(config?: VueConverterOptions): {
<TProps extends BaseComponentProps>(root: Component<TProps>, captured?: Record<string, any>): ForeignComponent<TProps>;
Extension: Component<import("piral-core").ExtensionSlotProps>;
};