0.1.0 • Published 6 years ago

react-highlight-tiny v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

propertytypedefaultnote
itemsshaperequired{ label, link, children}
querystringrequiredsearch pattern
limitnumber10max count of items
nothingViewcomponent/stringnullshows if no matches
themesharenullstyles for components { item, empty}

Engines

  • Yarn
  • npm
  • React