0.9.20 • Published 9 months ago
cmd-bar v0.9.20
cmd-bar wip
Features
- 🎨 Unstyled - No styles included, you can style it as you want
- 🧩 Extensible - You can add your own Modal and components
- ⌨️ Key bindings - Usable with just a keyboard
- 🧙 Virtualized - It uses useVirtualList
Quick Setup
- Add
cmd-bar
dependency to your project
# Using pnpm
pnpm add -D cmd-bar
# Using yarn
yarn add --dev cmd-bar
# Using npm
npm install --save-dev cmd-bar
- Then you can import the
CmdBar
Compound Component in your project.
import { CmdBar } from 'cmd-bar'
<CmdBar :groups="groupedCommands" />
<CmdBarDialog>
<template #header>
<CmdBarInput placeholder="search fo anything />
</template>
<template #content>
<CmdBarList :config="listConfig">
<template #default="{ command }">
<div class="leading">
<img :src="command.leading" alt="icon" />
{{ command.label }}
</div>
<span v-if="command.shortcut" class="actions">
<kbd v-for="shortcut of formattedShortcuts(command.shortcut)" :key="shortcut">
{{ shortcut }}
</kbd>
</span>
</template>
</CmdBarList>
</template>
</CmdBarDialog>
</CmdBar>
That's it! ✨
Props to xiaoluoboding/vue-command-palette and CommandPalette - Nuxt UI, for the inspiration.
0.9.12
9 months ago
0.9.13
9 months ago
0.9.14
9 months ago
0.9.15
9 months ago
0.9.16
9 months ago
0.9.17
9 months ago
0.9.18
9 months ago
0.9.19
9 months ago
0.9.20
9 months ago
0.9.11
9 months ago
0.9.10
9 months ago
0.9.8
9 months ago
0.9.7
10 months ago
0.9.9
9 months ago
0.9.6
10 months ago
0.9.5
10 months ago
0.9.4
10 months ago
0.9.3
10 months ago
0.9.0
10 months ago
0.8.1
11 months ago
0.8.0
11 months ago
0.9.2
10 months ago
0.9.1
10 months ago
0.7.9
2 years ago
0.7.8
2 years ago
0.7.5
2 years ago
0.7.4
2 years ago
0.7.3
2 years ago
0.7.2
2 years ago
0.7.1
2 years ago
0.7.0
2 years ago
0.6.2
2 years ago
0.6.1
2 years ago
0.6.0
2 years ago
0.5.0
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.5
2 years ago
0.1.0
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago