Skip to main content
Vuetify0 v1.0 is here
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

Factory for creating Vue plugins with typed dependency injection and lifecycle hooks.

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?

© 2016-1970 Vuetify, LLC
Services
Ctrl+/