material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[docs][Base] useAutocomplete demos & docs

Open mj12albert opened this issue 2 years ago • 1 comments

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

mj12albert avatar Apr 26 '23 08:04 mj12albert

Netlify deploy preview

Bundle size report

No bundle size changes

Generated by :no_entry_sign: dangerJS against ecada5c47b150e044eb3f73c52d024097564e5fd

mui-bot avatar Apr 26 '23 08:04 mui-bot

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

mj12albert avatar Jun 05 '23 07:06 mj12albert