0.9.20 • Published 7 months ago

cmd-bar v0.9.20

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

cmd-bar wip

Preview

npm version npm downloads License Vue

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

📖  Read more

Quick Setup

  1. 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
  1. 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! ✨

📖  Read more

Props to xiaoluoboding/vue-command-palette and CommandPalette - Nuxt UI, for the inspiration.

0.9.12

8 months ago

0.9.13

8 months ago

0.9.14

8 months ago

0.9.15

8 months ago

0.9.16

8 months ago

0.9.17

8 months ago

0.9.18

8 months ago

0.9.19

7 months ago

0.9.20

7 months ago

0.9.11

8 months ago

0.9.10

8 months ago

0.9.8

8 months ago

0.9.7

8 months ago

0.9.9

8 months ago

0.9.6

8 months ago

0.9.5

8 months ago

0.9.4

9 months ago

0.9.3

9 months ago

0.9.0

9 months ago

0.8.1

10 months ago

0.8.0

10 months ago

0.9.2

9 months ago

0.9.1

9 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