@wix/design-system
Version:
@wix/design-system
14 lines (11 loc) • 391 B
TypeScript
import * as React from 'react';
export interface HighlighterProps {
/** Applied as data-hook HTML attribute that can be used in the tests */
dataHook?: string;
/** match to highlight */
match?: string;
children?: React.ReactNode;
/** style of highlight */
emphasize?: 'text' | 'background';
}
export default class Highlighter extends React.PureComponent<HighlighterProps> {}