MCPcopy Create free account
hub / github.com/formkit/formkit / setup

Function setup

examples/src/vue/examples/custom-elements/CustomRoot.ts:19–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 `,
18 ],
19 setup() {
20 const app = createApp(CustomElementApp)
21 app.use(
22 plugin,
23 defaultConfig({
24 plugins: [createMultiStepPlugin()],
25 })
26 )
27
28 const inst = getCurrentInstance()
29 if (inst) {
30 Object.assign((inst as any).appContext, app._context)
31 Object.assign((inst as any).provides, app._context.provides)
32 }
33
34 return () => h(CustomElementApp)
35 },
36})

Callers

nothing calls this directly

Calls 3

defaultConfigFunction · 0.90
createMultiStepPluginFunction · 0.90
createAppFunction · 0.85

Tested by

no test coverage detected