Custom menu items and layout in react material select - reactjs

I am using material select component in my react application. Can i specify the layout of menu items to next to each other and wrap to new line ? Desired componnent should look like this:

Related

How to create a Double Sidebar in react

I want to create a double sidebar in react that is a sidebar that looks something like this
in which the icons are part of sidebar 1 and options keep changing like invoice dashboard etc keep changing in sidebar 2
currently I am using the react sidebar pro library(https://www.npmjs.com/package/react-pro-sidebar) but it only provides multilevel vertical nesting thus i am able to acheive something like this
so how do I create this double sidebar

Dropdown on button click using Material UI

How to show dropdown on button click using material ui?
Currently, I'm able to do so but extra select field is getting populated which is not required. I don't want to hide select field with css.
Also, How can I change width, height, position and other properties of generated popover using material ui?
codesandbox url: https://codesandbox.io/s/du8mr
current implementation
popover
You can use Menu component instead of a Select component.
You can change the Menu props using MenuProps which receives all Popover props.
From Menu documentation:
Any other props supplied will be provided to the root element (Popover).

Antd select not working inside a full screen dialog

I am using both materialui and antd as the ui component library in my react app. I have been using material ui's full screen dialog and tried to insert antd's select inside the dialog.
But looks like select list doesn't render correctly when placed inside material-ui's dialog component. I have tried to give antd select a very large zindex with absolute position but no luck.
Here's a the codesanbox link. You can the select work out the dialog but same select component doesn't render it's option list when placed inside the full screen dialog
https://codesandbox.io/s/1zvj51xmj
If I add dropdownStyle={{ zIndex: 2000 }} to the select it seems to work.
Add zIndex=20 to Dialog Component and zIndex=2000 to Select
<Dialog
open={openSetTagsDialog}
onClose={SetTagsDialoghandleClose}
aria-labelledby="form-dialog-setTags"
maxWidth={"md"}
style={{zIndex:20}}
>
<Select style={{zIndex:2000}}>{...options...}</Select>
<Dialog>

Dropdown with Icon in Salesforce Lightning Component

Would like to ask if it is possible to create a dropdown with icons (similar to the image below) in salesforce lightning component?
Maybe these:
menu slds styles: Menus - Icon on the Left
lightning:buttonMenu component: lightning:buttonMenu

React HoC For Collapsible Panel?

In my react app, there's a repeated UI pattern of using a collapsible panel (like an according), where there are several panels/boxes with a title bar. Clicking on the title bar expands/collapses the panel's contents.
Is a Higher Order Components method suitable for such a use case? Something like a withAccordion(Component)?

Resources