├── .gitignore ├── README.md ├── api └── data.json ├── index.html └── search.jsx /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Typeahead Search 2 | A basic search app that shows a bootstrap modal search form and, on typing, pulls in search results via ajax and React. 3 | 4 | See a demo here http://tonyspiro.com/dev/react-typeahead-search/ 5 | 6 |  7 | 8 | -------------------------------------------------------------------------------- /api/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "link": "http://github.com", 5 | "title": "Github", 6 | "icon": "fa-github", 7 | "content": "GitHub is the best place to build software together. Over 4 million people use GitHub to share code." 8 | }, 9 | { 10 | "link": "http://stackoverflow.com", 11 | "title": "Stack Overflow", 12 | "icon": "fa-stack-overflow", 13 | "content": "Q & A for professional and enthusiast programmers." 14 | }, 15 | { 16 | "link": "http://piedpiper.com", 17 | "title": "Pied Piper", 18 | "icon": "fa-pied-piper", 19 | "content": "Silicon Valley on HBO." 20 | }, 21 | { 22 | "link": "http://slack.com", 23 | "title": "Slack", 24 | "icon": "fa-slack", 25 | "content": "Slack brings all your communication together in one place. It’s real-time messaging, archiving and search for modern teams." 26 | }, 27 | { 28 | "link": "https://medium.com", 29 | "title": "Medium", 30 | "icon": "fa-medium", 31 | "content": "A magazine for a generation who grew up not caring about magazines." 32 | }, 33 | { 34 | "link": "https://stripe.com", 35 | "icon": "fa-cc-stripe", 36 | "title": "Stripe", 37 | "content": "Stripe is a suite of APIs that powers commerce for businesses of all sizes." 38 | } 39 | ] 40 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 |