@nuxt/ui
Version:
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
7 lines (6 loc) • 311 B
TypeScript
import type { Ref, InjectionKey } from 'vue';
export declare const portalTargetInjectionKey: InjectionKey<Ref<string | HTMLElement>>;
export declare function usePortal(portal: Ref<string | HTMLElement | boolean | undefined>): import("vue").ComputedRef<{
to: string | HTMLElement;
disabled: boolean;
}>;