s-private API Documentation - v3.8.1
    Preparing search index...

    Function CommandDialog

    • Command palette displayed in a modal dialog.

      Parameters

      • props: DialogProps & {
            className?: string;
            description?: string;
            showCloseButton?: boolean;
            size?: "default" | "lg" | "md";
            title?: string;
        }

        Dialog props plus title, description, and layout options

      Returns Element

      A modal command palette

      Combines Command with Dialog for a modal command palette experience. Includes accessible title and description for screen readers.

      <CommandDialog open={open} onOpenChange={setOpen}>
      <CommandInput placeholder="Type a command..." />
      <CommandList>
      <CommandEmpty>No results found.</CommandEmpty>
      <CommandGroup heading="Commands">
      <CommandItem>Profile</CommandItem>
      <CommandItem>Settings</CommandItem>
      </CommandGroup>
      </CommandList>
      </CommandDialog>

      Command for non-modal variant