WEB DESIGN TRENDS / 20 OF 20
Predictive Inputs
Predictive inputs narrow suggestions as someone types and can offer a likely completion, keyboard navigation, and loading feedback. The source example includes async suggestions, ghost text, and a slash-to-focus hint.
DESCRIPTION & USE
How the trend works
Predictive inputs narrow suggestions as someone types and can offer a likely completion, keyboard navigation, and loading feedback. The source example includes async suggestions, ghost text, and a slash-to-focus hint.
Where to use it
Use autocomplete for long, known lists such as products or locations. Keep the input usable without suggestions, explain the result count, and never move keyboard focus unexpectedly.
Bootstrap's input groups, form controls, list groups, badges, and visually-hidden text cover the structure and status. Filtering, debounce, and keyboard behavior need application logic.
Useful classes.input-group, .form-control, .list-group, .list-group-item, .badge, .visually-hidden, .spinner-borderFROM THE ATTACHED HTML
The original example
A PRACTICAL EXTENSION