A simple plug-n-play cmd+k interface for Vuetify.
⚠️ ⚠️ This project is currently is in work-in-progress stage.
Install
Note: You'll need to bring your own
vuetify
.
You can installvuetify
vianpm install vuetify
oryarn add vuetify
.
$ npm install @socheatsok78/vuetify-kbar@next
# or
$ yarn add @socheatsok78/vuetify-kbar@next
Usage
<template>
<v-app id="app">
<v-kbar :actions="actions" />
</v-app>
</template>
<script>
import { mdiClipboard } from '@mdi/js'
const actions = [
{
id: 'blog',
name: 'Blog',
description: '',
shortcut: ['b'],
keywords: 'writing words',
perform: () => (window.location.pathname = 'blog')
},
{
id: 'contact',
name: 'Contact',
shortcut: ['c'],
keywords: 'email',
perform: () => (window.location.pathname = 'contact')
}
]
export default {
name: 'App',
components: {
VKbar
},
data: () => ({
actions: actions
})
}
</script>
This project was created using @vue/cli
service.
yarn install
yarn serve
yarn build
yarn test:unit
yarn lint