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