Skip to content

Commit

Permalink
Add TypeAhead Component
Browse files Browse the repository at this point in the history
  • Loading branch information
bsbeeks committed Oct 1, 2015
1 parent aa9d787 commit 3e3646e
Show file tree
Hide file tree
Showing 3 changed files with 438 additions and 2 deletions.
18 changes: 17 additions & 1 deletion demo/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const React = require('react');
const { Select, Icon, RangeSelector, Loader, DonutChart } = require('../src/Index');
const { Select, Icon, RangeSelector, Loader, DonutChart, TypeAhead } = require('../src/Index');

const styles = {
block: {
Expand Down Expand Up @@ -280,6 +280,22 @@ const Demo = React.createClass({
<br/><br/>
<DonutChart data={donutChartData} />
<br/><br/>
<TypeAhead
items={[
'JPMorgan Chase',
'Bank of America',
'Citigroup',
'Wells Fargo',
'The Bank of New York Mellon',
'U.S. Bancorp',
'HSBC Bank USA',
'Capital One',
'PNC Financial Services',
'State Street Corporation'
]}
placeholderText='Select a Bank'
/>
<br/><br/>
<Select
isMobile={false}
onChange={this._handleSelectChange}
Expand Down
3 changes: 2 additions & 1 deletion src/Index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ module.exports = {
RajaIcon: require('./components/RajaIcon'),
RangeSelector: require('./components/RangeSelector'),
Select: require('./components/Select'),
Spin: require('./components/Spin')
Spin: require('./components/Spin'),
TypeAhead: require('./components/TypeAhead')
};
Loading

0 comments on commit 3e3646e

Please sign in to comment.