view raw
Jay Sun Jay Sun - 8 months ago 276
React JSX Question

Insert image into Material-UI AppBar

I've been looking for a way to insert a plain image file into the AppBar of Material-UI on the official docs but it seems like the only non-text things you can put in the AppBar are either text icons or SVG icons. Is there a way to display actual images in the AppBar?


I'm not sure exactly how you want to use images in the AppBar, but it is possible to put an <img> element in both the iconElementLeft and iconElementRight props.

Here is an example: