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
<Items
items={array}
query={this.state.query}
theme={theme}
nothingView="Nothing to show"
/>
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} |
- Yarn
- npm
- React