Examples
Basic
Match with result count
Match with navigable options
With submit button
Focus search input using ref
With expandable button
Animations on the expansion and collapse of the search input may be opted into by passing hasAnimations to the expandableInput object.
Advanced
The search input component can be used to dynamically build a one to one attribute-value advanced search.
Using the attributes prop alongside the advancedSearchDelimiter will expose this functionality, as demonstrated in
the following example. The search input component can also be used as a composable component and paired with a Popper
or other elements to build a completely custom advanced search form. This feature is demonstrated
in the search input’s react demos.
The values used in the attribute-value form fields may contain spaces. The values containing spaces should be wrapped with quotes inside the summary search string in the input field. If the latter is autogenerated from the individual fields the quotes will be autoplaced.