I've encountered a few challenges while trying to personalize a profile dropdown component using Semantic and React. First, I am facing an issue where my application crashes when I attempt to place a div inside the Dropdown.Menu with the error message below. Secondly, I'm uncertain how to specify a custom width for the dropdown itself. Currently, the dropdown only appears when I hover over it, but I want it to show up when hovering over both the image and the dropdown component. My goal is to achieve something similar to this image: puu.sh/tM6Ly/690a02bd46.png, possibly by replacing the dropdown arrow with the image.
<Dropdown simple={true} text="dropdown">
<Dropdown.Menu>
<Dropdown.Item>Profile 1</Dropdown.Item>
<Dropdown.Item>Profile 2</Dropdown.Item>
<Dropdown.Item>Profile 3</Dropdown.Item>
<Dropdown.Item>Profile 4</Dropdown.Item>
</Dropdown.Menu>
<div>
<img src="linkhidden"/>
</div>
</Dropdown>
The following code snippet triggers the error
onlyChild must be passed a children with exactly one child.
along with Invalid prop
childrensupplied to
Dropdown, expected a single ReactElement.