OptionalariaAccessible name for the trigger button, which is also rendered as the button's visible tooltip text. Write it as user-visible microcopy (sentence case), not as a screen-reader-only phrase.
Passing an empty string suppresses the tooltip AND leaves the icon-only button without an
accessible name, so prefer omitting the prop — which falls back to a sensible default — over
passing ''.
A value that is still a raw %localization_key% is treated as not-yet-localized and falls back
to the default, so a key can never reach the screen as tooltip text.
OptionalbuttonClass name for the trigger button. Defaults to absolute positioning inside an input field. Pass
a custom value to render the button standalone (e.g. "tw:h-9 tw:w-9")
OptionalbuttonVariant for the trigger button. Defaults to "ghost"
OptionalclassClass name for styling the DropdownMenuItem for each recent search result
OptionalgetFunction to create a unique key for each item
OptionalgroupHeading for the recent searches list. Rendered as the list's visible heading and used as its
accessible name, so a screen reader announces what the list is rather than a bare "menu". Falls
back to the default when omitted or still a raw %localization_key%.
OptionalidOptional ID for the dropdown menu content for accessibility
OptionalonCalled when the open state changes. Required when open is provided.
Callback when a recent search item is selected
OptionalopenControlled open state of the dropdown menu. If provided, the component becomes controlled.
Array of recent search items
OptionalrenderFunction to render each search item as a string for display
Interface defining the properties for the RecentSearches component