UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

12 lines (11 loc) 483 B
import { createContext } from "../../utils/create-context.js"; import { computed } from "vue"; //#region src/providers/environment/use-environment-context.ts var [EnvironmentContextProvider, useEnvironmentContext] = createContext("EnvironmentContext"); var DEFAULT_ENVIRONMENT = computed(() => ({ getRootNode: () => document, getDocument: () => document, getWindow: () => window })); //#endregion export { DEFAULT_ENVIRONMENT, EnvironmentContextProvider, useEnvironmentContext };