Jay Sun Jay Sun - 1 year ago 438
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?

Answer Source

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: http://www.webpackbin.com/4ys7V4W3b

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download