Skip to content

⌨️  A minimal example of input with autocomplete feature built with React and Styled-components

License

Notifications You must be signed in to change notification settings

matyas-igor/react-autocomplete-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-autocomplete-input

Netlify Status

Live demo: https://react-autocomplete-input.netlify.app/

Screenshot 2020-11-05 at 04 16 55

Available Scripts

In the project directory, you can run:

yarn storybook

Starts storybook in the development mode with hot-reload.
Open http://localhost:6006 to view it in the browser.

yarn build-storybook

Builds storybook in production mode.
Static build is available inside /storybook-static directory.

Notes and limitations

  • No UI library has been used on a purpose
  • Whole UI is simplified on a purpose as well
  • No support for custom render props (like in downshift)
  • Dropdown is always displayed at the bottom of the input
    • Positioning library like popperjs can be used to display at top/bottom
    • Open/close animations for dropdown could be added as well
  • Lots of properties are not implemented on purpose, like controlling menu state or rendering option item
  • Not optimized for touch devices

This project was bootstrapped with Create React App and Storybook.

About

⌨️  A minimal example of input with autocomplete feature built with React and Styled-components

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published