Skip to main content

Interface: UnifiedSearchProps

Defined in: widgets/unifiedSearch/unifiedSearch.tsx:28

Props for UnifiedSearch component.

See

UnifiedSearch

Properties

PropertyTypeDescription

defaultHeight?

number

Default (initial) height for the component when the dropdown is expanded.

Default

350

defaultWidth?

number

Default (initial) width for the component, including the search input and the dropdown.

Default

300

direction?

"up" | "down"

Search dropdown expand direction.

Default

"down"

hotkeyFocus?

null | `Alt+${Capitalize<string>}` | `Meta+${Capitalize<string>}` | `Shift+${Capitalize<string>}` | `None+${Capitalize<string>}` | `Mod+${Capitalize<string>}` | `Ctrl+${Capitalize<string>}`

Keyboard hotkey to focus on the search input.

Passing null disables the default hotkey.

Default

null

minHeight?

number

Minimum height for the dropdown when resized.

Default

150

minWidth?

number

Minimum width for the dropdown when resized.

Default

200

offsetWithMaxHeight?

number

Offset from bottom side of the canvas viewport to limit max width.

Default

20

offsetWithMaxWidth?

number

Offset from right side of the canvas viewport to limit max width.

Default

20

placeholder?

string

Placeholder text for the search input.

Default

"Search for..."

sections

readonly UnifiedSearchSection[]

Available sections (providers) to search with.