Docs
Command
Command
Fast, composable, unstyled command menu for Svelte.
About
The <Command />
component uses the cmdk-sv
library to provide a fast, composable, unstyled command menu for Svelte.
Note: cmdk-sv
is a new library and is still in alpha. While I don't anticipate a ton of breaking changes, as the API aligns with the original, I want to bring this to your awareness. If you find any bugs, please open an issue with the library, rather than this project.
Installation
- Install
cmdk-sv
andbits-ui
:
- Copy and paste the component source files linked at the top of this page into your project.
Usage
Examples
Dialog
To show the command menu in a dialog, use the <Command.Dialog />
component instead of <Command.Root />
. It accepts props for both the <Dialog.Root />
and <Command.Root />
components.
On This Page