Skip to content
PreviewSearch for Hana, or use the arrow keys to choose a recent result.
No result opened

Palette

openrequired
boolean
onOpenChangerequired
(open: boolean, details: OpenChangeDetails) => void
onOpenChangeComplete
(open: boolean) => void
labelrequired
string
Its name ("Search"), a hidden title.
instant
boolean
A shortcut's open: there in one frame.
modal
boolean
Default: true
false: set down open on a page.
container
PortalContainer
Where a surface's portal mounts. Default: document.body. Pass a themed subtree to keep its data-theme, or a transformed stage to contain position: fixed overlays (previews): a modal set down in one stays in it, shown in place, out of the browser's top layer.
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

valuerequired
string
onValueChangerequired
(value: string, details: { event: Event }) => void

Rest props go to <input> props.

onRemoveLast
() => void
Backspace in the empty field.
label
string
Default: "Filters"
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).
children
ReactNode
Chips and a menu's trigger.

status
"ready" | "loading" | "error"
Default: "ready"
loading keeps the last results; error drops them.
onRetry
() => void
The failure's "Try again".
error
ReactNode
Default: "Could not search"
What failed.
label
string
Default: "Results"
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

labelrequired
ReactNode
What its rows are ("Cards").
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

labelrequired
ReactNode
A MatchText where the query found it.
description
ReactNode
A line under it: the line it was found by.
leading
IconName | ReactNode
A glyph, a mark, or a picture at size="text".
meta
ReactNode
Where it is, when.
shortcut
ShortcutSpec
Its own keys, in the meta's place.
onSelect
(event: PaletteSelectEvent) => void
keepOpen
boolean
Default: false
disabled
boolean | string
Default: false
A sentence says why, in its tooltip.
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

queryrequired
string
children
ReactNode
Other words ("No cards match Bug").

rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).
children
ReactNode
A KeyLegend, drawn only where a fine pointer is.

ranges
readonly (readonly [number, number])[]
What a search found, each [start, end).
query
string
Or the query: its words, found where a word starts.

State machine

PreviewRecent results are ready to open.