NcHighlight
Props
| Prop name | Description | Type | Values | Default |
|---|---|---|---|---|
| text | The string to display | string | - | '' |
| search | The string to match and highlight | string | - | '' |
| highlight | The ranges to highlight, takes precedence over the search prop. | array | - | [] |
General description
Highlight a string with html <strong>. Accepts a substring to highlight or an array with ranges.
Usage
loading...