JSPM

react-ui-query-selector

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q21810F
  • License MIT

Query selector react component

Package Exports

  • react-ui-query-selector

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-ui-query-selector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-ui-query-selector

Query selector react component

How to install

npm i react-ui-query-selector --save

Then import the component and css

import { QuerySelector, QSItem } from 'react-ui-query-selector';
import 'react-ui-query-selector/lib/css/main.css';

render() {
  const { items } = this.state;

  return (
    <QuerySelector
      items={items}
      scrolledDown={this.onScrolledDown}
      scrolledUp={this.onScrolledUp}
      selectItem={this.onSelectItem}
      loadItems={this.loadItems}
      minLengthQuery={2}
      autofocus={true}
      debounce={300}
    />
  );
}

How it looks like

Alt text

Dependencies

  • Rxjs: ^5.5.6
  • Bootstrap: ^4.0.0