Newer
Older
vmk-ui-kit / src / vue / plugin.js
@Eugene Sukhodolskiy Eugene Sukhodolskiy 1 day ago 803 bytes Add Checkbox, Radio, and Switch components
/**
 * 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";
import GnCheckbox from "./components/GnCheckbox.js";
import GnRadio from "./components/GnRadio.js";
import GnRadioGroup from "./components/GnRadioGroup.js";
import GnSwitch from "./components/GnSwitch.js";

export const components = {
	GnButton,
	VmkIcon,
	GnInput,
	GnBadge,
	GnAlert,
	GnCheckbox,
	GnRadio,
	GnRadioGroup,
	GnSwitch
};

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