Installation
- CLI
- Manual
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.
lib/components/example-command-menu.svelte
Combobox
You can use the<Command /> component as a combobox. See the Combobox page for more information.
Changelog
2024-10-30 Classes for icons
- Added
gap-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0to the<Command.Item>component to automatically style the icons inside.