Highlighting Lightweight fuzzy search highlighting component using fuse.js Oct 09, 2019 1 min read react-fuzzy-highlighter Lightweight fuzzy search highlighting component using fuse.js. This component wraps fuse.js and provides matched and unmatched text in an iterable format. View demo View Github Install yarn add react-fuzzy-highlighter Bash Usage import * as React from 'react'; import FuzzyHighlighter, { Highlighter } from 'react-fuzzy-highlighter'; export default class extends React.Component { render() { return ( <FuzzyHighlighter query="old" data={[ { title: "Old Man's War" }, { title: 'The Lock Artist' }, { title: 'HTML5' } ]} options={{ shouldSort: true, includeMatches: true, threshold: 0.6, location: 0, distance: 100, maxPatternLength: 32, minMatchCharLength: 1, keys: ['title'] }} > {({ results, formattedResults, timing }) => { return ( <ul> {formattedResults.map((formattedResult, resultIndex) => { if (formattedResult.formatted.title === undefined) { return null; } return ( <li key={resultIndex}> <Highlighter text={formattedResult.formatted.title} /> </li> ); })} </ul> ); }} </FuzzyHighlighter> ); } } React JSX Example The examples folder contains the source code used for the demo. GitHub metonym/react-fuzzy-highlighter?? — Read MoreDownload as zip Highlighting
React Native A UITextView implementation for React Native that allows for full text highlighting/selection A UITextView implementation for React Native that allows for full text highlighting/selection 06 March 2024
Highlighting A React component for highlighting text selections within text and HTML content A React component for highlighting text selections within text and HTML content. 03 March 2024
Highlighting A simple yet fully stylable text field that highlights the text as you type A simple yet fully stylable text field that highlights the text as you type 08 December 2022