Skip to content

Search field with suggestions

A field offering suggestions as you type, navigable with the keyboard.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

Implements the ARIA combobox pattern with a list of suggestions: arrows browse options, Enter selects, Escape closes, and the number of suggestions is announced. Matching ignores accents and case ("orleans" finds "Orléans"). Replace the city list with your own data.

Code

Loading the code…

Archive contents

champ-recherche-suggestions-html-tailwind.zip3 files · 4 Ko

  • index.html5 Ko
  • README.md2 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A recruitment form for small businesses: target position, introduction, CV checked in the browser and GDPR consent, with inline errors.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A short NPS survey: a 0 to 10 score as radio buttons, then a follow-up question adapted to whether the customer is a detractor, passive or promoter.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component