Skip to main content
Vuetify0 is now in alpha!
Vuetify0 Logo
Theme
Mode
Palettes
Accessibility
Vuetify One
Sign in to Vuetify One

Access premium tools across the Vuetify ecosystem — Bin, Play, Studio, and more.

Not a subscriber? See what's included

createPlugin API

API reference for the createPlugin composable.

Explore these related pages for additional context and usage patterns.

PageCategory
createPluginFoundation
createContextFoundation
createTrinityFoundation
PluginsFundamentals

Functions

createPlugin

(options: PluginOptions) => Z

Creates a new Vue plugin.

createPluginContext

(defaultNamespace: string, factory: (options: Omit<O, "namespace" | "persist">) => E, config?: PluginContextConfig<Omit<O, "namespace" | "persist">, E> | undefined) => readonly [<_E extends E = E>(_options?: O) => ContextTrinity<_E>, (_options?: O) => Plugin, <_E extends E = E>(namespace?: string) => _E]

Creates the three standard functions for a plugin composable.

Options

provide required

(app: App) => void

setup

((app: App) => void) | undefined
Was this page helpful?

Ctrl+/