react-highlight-tiny
v0.1.0
Published
Tiny component for highlighting
Downloads
3
Readme
React Highlight Tiny
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