# createPlugin API

> Auto-generated API reference for `createPlugin` from @vuetify/v0 (Vuetify0).
> Source of truth: https://0.vuetifyjs.com/api/create-plugin

## Related

- https://0.vuetifyjs.com/composables/foundation/create-plugin
- https://0.vuetifyjs.com/composables/foundation/create-context
- https://0.vuetifyjs.com/composables/foundation/create-trinity
- https://0.vuetifyjs.com/guide/fundamentals/plugins

## Functions

### createPlugin

Creates a new Vue plugin.

```ts
(options: PluginOptions) => Z
```

### createPluginContext

Creates the three standard functions for a plugin composable.

```ts
(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]
```

## Options

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string` | — | yes | — |
| `provide` | `(app: App) => void` | — | yes | — |
| `setup` | `((app: App) => void) \| undefined` | — | no | — |
