Nihilist Postmodern Mistake

    @ivanlhz/react-highlight-text
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    HighlightText

    React component that makes bold all occurrences of highlight text. It apply <stong> html tag to each occurrence.

    Install

    npm i react-highlight-text

    Params

    text : string

    Full text to compose

    highlight: string

    Text to find and transform to bold

    Use

    <HighlightText text="Hello world" highlight="world" />

    Install

    npm i @ivanlhz/react-highlight-text

    DownloadsWeekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    7.69 kB

    Total Files

    8

    Last publish

    Collaborators

    • ivanlhz