Documentation needs instructions on how to theme
See original GitHub issueThe demos all have arcane CSS rules with no documentation. I see in the dist there’s a theme.js, but I can’t figure out how to import it and use it. So right now because of probably some copy/paste error from one of the demo CSS files to my own CSS the appearance of the suggestions is not aligned properly. Would be nice to know how I could import ./node_modules/react-autosuggest/dist/theme.js
but can’t find it in the documentation. So I think this counts as a bug I guess.
I want to do this because with the default create-react-app and then adding the autosuggest straight out of a demo (modifying the render item function) results in this, which as you can see does not line up correctly. The container of all of it has text-align: center. This appears to, without any custom styling, center only the search bar but not the results. CSS is copied and pasted straight out of one of the demos.

Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10
You can find a theme integration example on the Material-UI documentation.
+1
I can’t for the life of me understand themes with this plugin