UNPKG

vue-create-shadow-app

Version:
9 lines (8 loc) 428 B
import { type App, type Component } from 'vue'; import type { ExtractPublicPropsFromSFCComponent } from './vue-utils'; export interface CustomElementOptions { styles?: string[]; shadowRoot?: boolean; nonce?: string; } export declare function createShadowApp<HostElement, C extends Component>(rootComponent: C, rootProps: ExtractPublicPropsFromSFCComponent<C>, extraOptions?: CustomElementOptions): App<HostElement>;