0.1.0 • Published 1 year ago

v-command-palette v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

v-command-palette

A command palette for Vuetify.

https://github.com/wobsoriano/v-command-palette/assets/13049130/f99bccff-acde-422c-a30b-1a53bac0ffa0

Installation

npm install v-command-palette

Usage

Import the component at the root of your app

<script setup>
import { VCommandPalette, createCommand } from 'v-command-palette'

const commands = [
  createCommand({
    title: 'Home',
    icon: 'mdi-home',
    command() { /** do something */ },
    section: 'Navigation',
    shortcut: ['h'],
  }),
  createCommand({
    title: 'Docs',
    icon: 'mdi-book',
    command() { /** do something */ },
    section: 'Navigation',
    shortcut: ['g', 'd'],
  }),
]
</script>

<template>
  <VApp>
    <VMain>
      <VCommandPalette :commands="commands" />
    </VMain>
  </VApp>
</template>

Props

NameTypeDefaultDescription
commandsarray[]The list of commands to display. See the Command interface.
textFieldPropsobject{}VTextField props
dialogPropsobject{}VDIalog props
cardPropsobject{}VCard props
cardTextPropsobject{}VCardText props
fuseOptionsobject{}Fuse.js options

Composables

  • useCommandPalette - Programmaticaly open or close the dialog.

License

MIT

0.1.0

1 year ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.15

2 years ago

0.0.8

2 years ago

0.0.17

2 years ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago