Skip to main content

Function: CommandDialog()

@arolariu/components


@arolariu/components / CommandDialog

Function: CommandDialog()

CommandDialog(__namedParameters): Element

Defined in: components/ui/command.tsx:571

Renders the command surface inside a modal dialog.

Parameters

__namedParameters

Readonly<CommandDialogProps>

Returns

Element

Remarks

  • Renders a Base UI dialog popup
  • Built on Base UI Dialog primitives

Example

<CommandDialog open={open} onOpenChange={setOpen}>
<CommandInput placeholder='Search...' />
</CommandDialog>

See

Base UI Dialog Docs

// was this page useful?