[docs][Base] useAutocomplete demos & docs
Resolves https://github.com/mui/material-ui/issues/36884
Preview: https://deploy-preview-37029--material-ui.netlify.app/base/react-autocomplete/
Adding some demos to show how to use useAutocomplete. There is no Autocomplete component yet, just the hook.
Demos
In this PR I'm aiming to add the minimal amount of topics to cover the most basic use-cases of useAutocomplete, and will exclude big topics such as freeSolo or multi.
- [x] Introduction
- [x] Minimal example (modify Material UI one)
- [ ] How to render and customize options
- [ ] States (value vs inputValue)
- [ ] With/without Popper/Portal
- [x] I have followed (at least) the PR section of the contributing guide.
Netlify deploy preview
Bundle size report
Generated by :no_entry_sign: dangerJS against ecada5c47b150e044eb3f73c52d024097564e5fd
instead change the logic in MarkdownDocsV2.js to do the slice only if the
headers.components.length > 0
This worked and I added a comment! @mnajdova