Package Exports
- react-bootstrap-typeahead
- react-bootstrap-typeahead/css/ClearButton.css
- react-bootstrap-typeahead/css/Loader.css
- react-bootstrap-typeahead/css/Token.css
- react-bootstrap-typeahead/css/Typeahead.css
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-bootstrap-typeahead) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Bootstrap Typeahead
React-based typeahead component that uses Bootstrap as a base for styles and behaviors and supports both single- and multi-selection. The UI and behaviors are inspired by Twitter's typeahead.js. Try a live example.
Please note that this library is under active development and the APIs may change. The documentation below applies to the most recent version and may no longer be applicable if you're using an outdated version.
Installation
Use NPM to install the module in your project:
$ npm install --save react-bootstrap-typeahead
Include the module in your project:
import {Typeahead} from 'react-bootstrap-typeahead'; // ES2015
var Typeahead = require('react-bootstrap-typeahead').Typeahead; // CommonJS
Minified and unminified UMD modules are also included in the NPM package, or you can get them from CDNJS.
Documentation
CSS
The component tries to use as little CSS as possible, relying primarily on Bootstrap or any Bootstrap themes for styling. Some minimal styling is included in Typeahead.css
and Token.css
and should ideally be included wherever you're using the component.
Example
To modify the example, clone the repository, npm install
and npm run example
to build the example index file. You can then open the HTML file locally in a browser. You can also try the live example.
Browser Support
Recent versions of the following browsers are supported:
- Chrome
- Firefox
- IE (10/11)
- Safari