Components
BaseTextMatch
A text with the parts that match a search term highlighted.
components/ui/BaseTextMatch.vue
View in the demo
Example
SearchInvite your team, assign roles and track every invoice from one dashboard.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
textrequired | string | — | The full text. |
term | string | "" | The search term. Matching ignores case and accents. |
color | string | "primary" | The highlight colour. |
It uses splitMatch() from utils/text.ts, unit tested. The help center and this documentation’s search use it.