n8n/packages/design-system/src/plugin.ts
2023-12-28 09:49:58 +01:00

13 lines
337 B
TypeScript

import type { Component, Plugin } from 'vue';
import * as components from './components';
export interface N8nPluginOptions {}
export const N8nPlugin: Plugin<N8nPluginOptions> = {
install: (app) => {
for (const [name, component] of Object.entries(components)) {
app.component(name, component as unknown as Component);
}
},
};