Answers for "material-ui.com autocomplete grouped"

0

material-ui.com autocomplete grouped

<Autocomplete
  id="grouped-demo"
  options={options.sort((a, b) => -b.firstLetter.localeCompare(a.firstLetter))}
  groupBy={(option) => option.firstLetter}
  getOptionLabel={(option) => option.title}
  style={{ width: 300 }}
  renderInput={(params) => <TextField {...params} label="With categories" variant="outlined" />}
/>
Posted by: Guest on July-31-2021

Code answers related to "material-ui.com autocomplete grouped"

Browse Popular Code Answers by Language