Basic usage
Add a search bar component to your UI Studio page to enable search capability. To build a minimal search component, you must set values for the Name and Datastore fields.
Typeahead
You can enable autocomplete suggestions that appear as users type. When typeahead is enabled, the search bar displays a dropdown of suggested queries as users type. Users can:- Click a suggestion to search for it.
- Use arrow keys to navigate suggestions.
- Press Enter to search the highlighted suggestion.
- Press Escape to close the dropdown.
Typeahead suggestions improve discoverability and reduce typos, but they also add complexity. Turn the typeahead setting off for simple search scenarios or when your dataset is small.
Suggestion count
Set the maximum number of typeahead suggestions to display in the Suggestion Count field. Enter a number in the Suggestion Count field, for example, 5, 10, or 15. The default value is 10 suggestions. Keep suggestion counts between 5 and 10 to balance performance and suggestion variety. Too few suggestions limit discovery, while too many suggestions can overwhelm users.Search character count
Set the minimum number of characters required before showing suggestions. Enter a number in the Search Character Count field, for example, 2, 3, or 4. Setting a higher number prevents typeahead from triggering on very short queries that would return too many broad suggestions. If you have a dataset with distinct terms, use a lower value.Higher character counts reduce the number of typeahead API calls, improving performance. However, higher character counts also delay when users see useful suggestions.
Configuration properties
Component identifier for organization and reference. The name does not display on your user-facing website.
Primary data source for search queries. Must be configured in your UI Studio application.
Data source for autocomplete suggestions. This datastore can be the same as the main datastore or a separate optimized source. If the endpoint is missing or unreachable, typeahead is automatically deactivated to prevent errors.
Hint text displayed when the search bar is empty. Should be concise and descriptive.
Typography settings for placeholder text.
Color scheme for the search bar.
Autocomplete suggestion settings.