UNPKG

497 BTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React from 'react';
3export interface HighlighterProps {
4 children: string;
5 highlightClassName?: string;
6 search: string;
7}
8declare const Highlighter: {
9 ({ children, highlightClassName, search, }: HighlighterProps): React.JSX.Element;
10 propTypes: {
11 children: PropTypes.Validator<string>;
12 highlightClassName: PropTypes.Requireable<string>;
13 search: PropTypes.Validator<string>;
14 };
15};
16export default Highlighter;