Dialog props plus title, description, and layout options
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
Command palette displayed in a modal dialog.