A simple command palette component
Generated using vue-cli-template-library.
npm install vue-command-palette
vue-command-palette can be used as a module in both CommonJS and ES modular environments.
When in non-modular environment, vue-command-palette will register all the components to vue by itself.
//
// You can register a component manually
//
import { HelloWorld } from 'vue-command-palette';
export default {
...
components: {
HelloWorld
},
...
};
//
// or register the whole module with vue
//
import ModuleLibrary from 'vue-command-palette';
// Install this library
Vue.use(ModuleLibrary);
//
// You can register a component manually
//
var Vue = require('vue');
var ModuleLibrary = require('vue-command-palette');
var YourComponent = Vue.extend({
...
components: {
'hello-world': ModuleLibrary.HelloWorld
},
...
});
//
// or register the whole module with vue
//
var Vue = require('vue');
var ModuleLibrary = require('vue-command-palette');
// Install this library
Vue.use(ModuleLibrary);
<script src="path/to/vue/vue.min.js"></script>
<script src="path/to/vue-command-palette/dist/vue-command-palette.min.js"></script>
<!-- Components are registered globally -->
<hello-world></hello-world>
See the GitHub release history.
See CONTRIBUTING.md.