Newer
Older
vmk-ui-kit / src / vue / plugin.js
/**
 * VMK UI Kit Vue plugin.
 * Mirrors the GnexusUiVue plugin from gnexus-ui-kit.
 */

import GnButton from "./components/GnButton.js";
import VmkIcon from "./components/Icon.js";
import GnInput from "./components/GnInput.js";
import GnBadge from "./components/GnBadge.js";
import GnAlert from "./components/GnAlert.js";

export const components = {
	GnButton,
	VmkIcon,
	GnInput,
	GnBadge,
	GnAlert
};

export default {
	install(app) {
		Object.entries(components).forEach(([name, component]) => {
			app.component(name, component);
		});
	}
};