Components
Highlight
A custom select component with a client side filter
Import
import { Highlight } from '@outfitio/outkit';
Basic Usage
Custom styles
Props
Any extra props (eg: css) will be spread onto the wrapping Text element.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | No | '' | The text that will potentially contain matches |
highlighted | string | No | '' | The word(s) to search the text for |
highlightedProps | object | No | {} | Props that will be spread onto the spans wrapping the matching words |