hanzi_ru
hanzi_ru

Reputation: 153

Add Avatar to Material-UI AppBar

I'm trying to add an Avatar to an AppBar. However, the Avatar is not getting added to the AppBar. Could you please assist me. Please refer the attached image for my codingenter image description here

Upvotes: 1

Views: 2008

Answers (1)

Ricovitch
Ricovitch

Reputation: 2338

V1+ documentation : https://material-ui.com/api/app-bar/

V0+ documentation : https://v0.material-ui.com/#/components/app-bar

The property "iconElementRight" is only available on v0+

If you migrated to the V1 you have to add the icon yourself as a child of the AppBar.

Upvotes: 3

Related Questions