Quick search...K

    Command

    Fast, composable, unstyled command menu for React.

    Usage Examples

    Basic Usage

    A simple example of using the `Command` component to create a basic command menu.

    <Command>
    <CommandInput placeholder="Type a command or search..." />
    <CommandList>
      <CommandEmpty>No results found.</CommandEmpty>
      <CommandGroup heading="Suggestions">
        <CommandItem>Calendar</CommandItem>
        <CommandItem>Search</CommandItem>
        <CommandItem>Settings</CommandItem>
      </CommandGroup>
    </CommandList>
    </Command>

    With Dialog

    Combine the `Command` menu with a dialog for a more advanced interface.

    <CommandDialog>
    <CommandInput placeholder="Search commands..." />
    <CommandList>
      <CommandEmpty>No commands found.</CommandEmpty>
      <CommandGroup heading="Actions">
        <CommandItem>Open Settings</CommandItem>
        <CommandItem>Show Notifications</CommandItem>
      </CommandGroup>
    </CommandList>
    </CommandDialog>