react-highlight-tiny

0.1.0 • Public • Published

React Highlight Tiny

Npm package Build Status Dependency Status

Intro

The component represent the tiny search/highlight React component. No dependencies and redundant wrappers. Could be just copied from source code or used as an example of React component library

Example

  <Items
    items={array}
    query={this.state.query}
    theme={theme}
    nothingView="Nothing to show"
  />

API

property type default note
items shape required { label, link, [children]}
query string required search pattern
limit number 10 max count of items
nothingView component/string null shows if no matches
theme share null styles for components { item, empty}

Engines

  • Yarn
  • npm
  • React

Dependencies (0)

    Dev Dependencies (25)

    Package Sidebar

    Install

    npm i react-highlight-tiny

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    15.3 kB

    Total Files

    26

    Last publish

    Collaborators

    • ok2ju
    • zmeecer