# toHighlight API

> Auto-generated API reference for `toHighlight` from @vuetify/v0 (Vuetify0).
> Source of truth: https://0.vuetifyjs.com/api/to-highlight

## Related

- https://0.vuetifyjs.com/composables/transformers/to-highlight
- https://0.vuetifyjs.com/composables/data/create-filter
- https://0.vuetifyjs.com/components/forms/combobox
- https://0.vuetifyjs.com/composables/transformers/to-array

## Functions

### toHighlight

Splits text into matched and unmatched chunks.

Pure transformer — returns a plain array. Wrap the call in `computed()` for
reactive recomputation.

Priority: `options.matches` (when non-empty) → `query` → no-match fallback.

```ts
(text: MaybeRefOrGetter<string>, query?: MaybeRefOrGetter<string | string[] | undefined>, options?: ToHighlightOptions) => HighlightChunk[]
```
