Autocomplete
Overview
Usage
Examples
API
An autocomplete is a text field that filters a list of suggestions as the user types. RhombusKit's <rhombus-autocomplete> wraps Material's <mat-autocomplete> in the same form-field shell as input and select, and routes its panel colour through the token contract so it re-skins with the active theme. It is free-text by default, so the field accepts a typed value even when nothing matches.
Example
When to use
- When there are too many options to scroll a select comfortably, and filtering by typing is faster.
- For server-backed search — set
[filterWith]="null"and refetch from(queryChange). - When the user may enter a value not on the list (free text), which the default
requireSelection=falseallows.
When not to use
Related components
Was this page helpful?