In my React application, I am utilizing Material-UI GridList to showcase some images. I am interested in adding an IconButton on top of the image in my GridTile component. Currently, I can achieve this by providing the button to the actionIcon
prop. However, it seems that the IconButton is only visible when I also provide a title
prop. Here is an example with title='image'
:
https://i.stack.imgur.com/vmnmbm.png
If I exclude the title
prop, the overlay containing the IconButton does not appear. Interestingly, using title=''
or title={null}
yield the same outcome.
Is there an alternative method to place an IconButton on top of the image within a GridTile? My objective is to achieve a layout similar to this:
https://i.stack.imgur.com/ehJyAm.png
Any suggestions or guidance would be greatly appreciated. Thank you!