Avatars

You can add the component on any page in the template. You need to follow the steps given below: ‌

Step 1: Please add the code given below in the page where you want to add the component.

<Avatar alt="user 1" 
src={require('Assets/img/user-5.jpg')}
className="size-120 rounded-circle border-primary rct-notify"
/>

Step 2: Now Import the component from its parent library.

import Avatar from '@material-ui/core/Avatar';

We have given you an example of adding a simple avatar on the Ecommerce Dashboard.

You can check some other layouts of avatars below. For adding any of the below layout in the template, please check their relative code in the src->routes->components->avatar->index.js file.

Last Updated 4 years ago
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages