<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`renderMatches`](renderMatches)
## renderMatches() function
**Signature:**
```typescript
export function renderMatches(el: HTMLElement | DocumentFragment, text: string, matches: SearchMatches | null, offset?: number): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>el</code> | <code>HTMLElement</code><code> | </code><code>DocumentFragment</code> | |
| <code>text</code> | <code>string</code> | |
| <code>matches</code> | [`SearchMatches`](SearchMatches)<code> | null</code> | |
| <code>offset</code> | <code>number</code> | _(Optional)_ |
**Returns:**
`void`