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.

PropertyTypeRequiredDefaultDescription
textstringNo''The text that will potentially contain matches
highlightedstringNo''The word(s) to search the text for
highlightedPropsobjectNo{}Props that will be spread onto the spans wrapping the matching words