UNPKG

@ark-ui/vue

Version:

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

15 lines (14 loc) 365 B
let vue = require("vue"); //#region src/utils/create-context.ts var createContext = (id) => { const contextId = Symbol(id); const provider = (value) => (0, vue.provide)(contextId, value); const consumer = (fallback) => (0, vue.inject)(contextId, fallback); return [ provider, consumer, contextId ]; }; //#endregion exports.createContext = createContext;