primevue
Version:
PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc
40 lines (31 loc) • 1.14 kB
TypeScript
import type { DefineComponent, EmitFn, HintedString } from '@primevue/core';
import { VNode } from 'vue';
type PortalAppendToType = HintedString<'body' | 'self'> | undefined | HTMLElement;
export interface PortalProps {
/**
* A valid query selector or an HTMLElement to specify where the dialog gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
* @see PortalAppendToType
* Default value is 'body'.
*/
appendTo?: PortalAppendToType;
/**
* If disabled, the Portal feature is eliminated and the content is displayed directly.
* @defaultValue false
*/
disabled?: boolean | undefined;
}
export interface PortalSlots {
/**
* Default content slot.
*/
default: () => VNode[];
}
declare type PortalEmitsOptions = {};
export declare type PortalEmits = EmitFn<PortalEmitsOptions>;
declare const Portal: DefineComponent<PortalProps, PortalSlots, PortalEmits>;
declare module 'vue' {
export interface GlobalComponents {
Portal: DefineComponent<PortalProps, PortalSlots, PortalEmits>;
}
}
export default Portal;