Docs
Command
Command
Fast, composable, unstyled command menu for Svelte.
Installation
Install bits-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.
Changelog
2024-10-30 Classes for icons
- Added
gap-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
to the<Command.Item>
component to automatically style the icons inside.
On This Page