FreeJunior~20 minDraft, awaiting review
Filterable list with empty states
Search as you type, count the results, and say something useful when nothing matches.
Requirements
- A text input labelled "Filter".
- Show only items whose name contains the query, ignoring case and spaces around it.
- An empty query shows every item, inside a list labelled "Results".
- A role="status" element shows "N results", or "1 result".
- When nothing matches, hide the list and show No matches for "query" with the trimmed query.
- When there are no items at all, show "Nothing to show yet".
Out of scope
- Highlighting the matched part.
- Debouncing the input.