Text utilities
- Search results, filtered lists and command palettes that show matched text.
Composition and API
HighlightText accepts one or multiple literal queries. Empty queries are ignored; longest matches at the same start win. Case-insensitive matching uses Unicode simple case folding, without accent normalization or locale-specific equivalence.
Accessibility
Mark indicates relevance; screen readers do not necessarily announce its boundaries. Do not use color alone to explain a result.
FAQ
Is an animation package required?
No. Mark and HighlightText do not require an animation package or a measurement hook.