Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/command-palette/components/CommandPalette

Cockpit client (features), next. Source: ui/client/features/command-palette/components/CommandPalette.tsx.

Functions#

CommandPalette()#

CommandPalette(__namedParameters): Element | null

Defined in: ui/client/features/command-palette/components/CommandPalette.tsx:8

The Ctrl K palette: a modal dialog holding a combobox (search input) and its listbox of commands. Focus stays in the input (options are reached with the arrow keys via aria-activedescendant), so Tab has nowhere else to go and is held inside the dialog; Esc or a click outside closes it.

Props#

No documented props.

Returns#

Element | null