Command

A command palette with fuzzy search, keyboard navigation, and grouped items.

Basic

Command palette with suggestion and settings groups.

Calendar
Search
Emoji
Profile⌘P
Billing⌘B
Settings⌘,

Dialog

Command palette rendered inside a dialog overlay. Click the button to open.

Usage

julia
using Suite

Command(
    CommandInput(placeholder="Type a command or search..."),
    CommandList(
        CommandEmpty("No results found."),
        CommandGroup(heading="Suggestions",
            CommandItem(value="calendar", "Calendar"),
            CommandItem(value="search", "Search"),
        ),
        CommandSeparator(),
        CommandGroup(heading="Settings",
            CommandItem(value="profile", "Profile",
                CommandShortcut("⌘P")),
            CommandItem(value="settings", "Settings",
                CommandShortcut("⌘,")),
        ),
    ),
)

Keyboard Interactions

KeyAction
Arrow DownMove focus to the next item
Arrow UpMove focus to the previous item
EnterSelect the focused item
EscapeClose the dialog
Ctrl+N / Ctrl+JMove focus to the next item (vim binding)
Ctrl+P / Ctrl+KMove focus to the previous item (vim binding)

API Reference

Command

PropTypeDefaultDescription
children...Any-Command sub-components (container)

CommandInput

PropTypeDefaultDescription
placeholderString"Search..."Placeholder text for the search input

CommandList

PropTypeDefaultDescription
classString""Additional CSS classes

CommandEmpty

PropTypeDefaultDescription
children...Any-Content shown when no results match

CommandGroup

PropTypeDefaultDescription
headingString""Group heading label

CommandItem

PropTypeDefaultDescription
valueString""Unique value identifier for the item
disabledBoolfalseDisable this item

CommandSeparator

PropTypeDefaultDescription
---Visual separator between groups

CommandShortcut

PropTypeDefaultDescription
children...Any-Keyboard shortcut text

CommandDialog

PropTypeDefaultDescription
children...Any-Wraps Command in a dialog overlay