xiaoluoboding / vue-command-palette

⌨️ A fast, composable, unstyled command palette interface for Vue.
https://vue-command-palette.robertshaw.id/
MIT License
544 stars 27 forks source link

How to use this? #25

Closed HuakunShen closed 4 months ago

HuakunShen commented 5 months ago

The demo website looks great but how to get it to work like that? Do I have to write all css myself or is there a preset.

This is what I get with the sample code. image

acirinelli commented 4 months ago

Did you figure out how to get this working clean? I can't even get the window to pop open at all. The documentation is very bad. Any example code would be super helpful.

HuakunShen commented 4 months ago

I didn't spend time on this. I personally used https://www.shadcn-vue.com/docs/components/command.html which is based on radix-vue's comboox (https://www.radix-vue.com/components/combobox.html#combobox).

This one requires you to configure all the styling before you can see a nice UI.

This repo is similar to the original react cmdk https://github.com/pacocoursey/cmdk Only the bare bone is provided in the package. If you want some sample code, you can try looking at how the website it built.

y1324 commented 1 week ago

我没有花时间做这件事。我个人使用了基于 radix-vue 的 comboox (https://www.radix-vue.com/components/combobox.html#combobox) 的 https://www.shadcn-vue.com/docs/components/command.html

这需要您先配置所有样式,然后才能看到漂亮的 UI。

这个仓库类似于原来的 react cmdk https://github.com/pacocoursey/cmdk 包中只提供了裸骨。如果你想要一些示例代码,你可以尝试查看它如何构建网站。

I have the same problem as you, it's so annoying