Skip to content

Commit

Permalink
Merge pull request #17 from mxenabled/type_ahead
Browse files Browse the repository at this point in the history
Add TypeAhead Component
  • Loading branch information
bsbeeks committed Oct 1, 2015
2 parents aa9d787 + 988d07a commit d60daf4
Show file tree
Hide file tree
Showing 4 changed files with 435 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 0,
"react/prop-types": [2, { "ignore": ["style", "children"] }],
"react/react-in-jsx-scope": 2,
"react/require-extension": [2, { "extensions": [".js", ".jsx"] }],
"react/self-closing-comp": 2,
Expand Down
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 d60daf4

Please sign in to comment.