I am currently utilizing Material UI for a project and looking to create a dropdown with a unique layout featuring 2 columns:
https://i.sstatic.net/l8Jio.png
Here is an excerpt of my code in progress:
<Select>
<MenuItem>item 1</MenuItem>
<MenuItem>item 2</MenuItem>
<MenuItem>item 3</MenuItem>
<MenuItem>item 4</MenuItem>
</Select>
I attempted to group 'item 1' and 'item 2' within a flexbox container using React fragment or div, but this caused the select dropdown functionality to fail - selecting options became unresponsive.
<Select>
<div>
<MenuItem>item 1</MenuItem>
<MenuItem>item 2</MenuItem>
</div>
<div>
<MenuItem>item 3</MenuItem>
<MenuItem>item 4</MenuItem>
</div>
</Select>
I wish to maintain the separate containers as I also need to incorporate scrollbars within each. Is there a method to retain the containers without compromising the select functionality?