UNPKG

@oruga-ui/oruga-next

Version:

UI components for Vue.js and CSS framework agnostic

9 lines (7 loc) 291 B
import { toValue } from "vue"; import { getOption } from "@/utils/config"; /** get the root config `teleportTarget` */ export function useTeleportDefault(): HTMLElement | string { const option = getOption("teleportTarget", "body"); return toValue(option) as HTMLElement | string; }