TextHighlighter

Primitive #95

🔍 Problem it solves

Users cannot easily see why a suggestion was matched.

✅ Solution

TextHighlighter wraps the matching substring in a <mark> tag or custom element.

🧩 Used by components

Autocomplete suggestions, Search results, Filtered lists.

🎮 Interactive demo