vuepress-api-playground
Version:
The VuePress API Playground is a Vue.js component for showcasing and testing API use cases in VuePress documentation
16 lines (12 loc) • 337 B
JavaScript
import * as components from './components';
const ComponentLibrary = {
install(Vue = {}) {
Object.values(components).forEach((component) => {
Vue.component(component.name, component);
});
},
};
export default ComponentLibrary;
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(ComponentLibrary);
}