48 CZ-PRG (GMT+1)
US-NYC (GMT-5)
Blazor Web App (Server rendered)

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.

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 5.3

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.

What Bootstrap 5.3 can do

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-border

FROM THE ATTACHED HTML

The original example

Trending:/focus search in a full implementation

A PRACTICAL EXTENSION

One more way to use it

Added example
This local demo filters suggestions as you type and accepts the first match with Enter. A production search can add debounce, async loading, arrow-key navigation, and ghost completion.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.