0.1.0 • Published 12 months ago

v-command-palette v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months 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

12 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.15

1 year ago

0.0.8

1 year ago

0.0.17

1 year ago

0.0.3

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago