{"id":192,"date":"2020-04-10T03:31:46","date_gmt":"2020-04-10T03:31:46","guid":{"rendered":"https:\/\/docs.theironnetwork.org\/hulk\/?page_id=192"},"modified":"2020-04-13T11:45:06","modified_gmt":"2020-04-13T11:45:06","slug":"avatars","status":"publish","type":"page","link":"https:\/\/docs.theironnetwork.org\/hulk\/avatars\/","title":{"rendered":"Avatars"},"content":{"rendered":"\n<p>You can add the component on any page in the template. You need to follow the steps given below: \u200c<\/p>\n\n\n\n<p><strong>Step 1:<\/strong>\u00a0Please add the code given below in the page where you want to add the component.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;Avatar alt=\"Remy Sharp\" src={require('assets\/Images\/avatars\/user-1.jpg')} \/><\/pre>\n\n\n\n<p><strong>Step 2:<\/strong>\u00a0Now Import the component from its parent library.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import Avatar from '@material-ui\/core\/Avatar';<\/pre>\n\n\n\n<p>We have given you an example of adding a simple avatar .<\/p>\n\n\n\n<p>You can check some other layouts of app bar below. For adding any of the below layout in the template, please check their relative code in the\u00a0<code>src->routes->UiComponents->Avatars->index.js<\/code>\u00a0file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"472\" src=\"https:\/\/docs.theironnetwork.org\/hulk\/wp-content\/uploads\/sites\/13\/2020\/04\/Selection_142-1024x472.png\" alt=\"\" class=\"wp-image-333\" srcset=\"https:\/\/docs.theironnetwork.org\/hulk\/wp-content\/uploads\/sites\/13\/2020\/04\/Selection_142-1024x472.png 1024w, https:\/\/docs.theironnetwork.org\/hulk\/wp-content\/uploads\/sites\/13\/2020\/04\/Selection_142-300x138.png 300w, https:\/\/docs.theironnetwork.org\/hulk\/wp-content\/uploads\/sites\/13\/2020\/04\/Selection_142-768x354.png 768w, https:\/\/docs.theironnetwork.org\/hulk\/wp-content\/uploads\/sites\/13\/2020\/04\/Selection_142-1536x708.png 1536w, https:\/\/docs.theironnetwork.org\/hulk\/wp-content\/uploads\/sites\/13\/2020\/04\/Selection_142-1568x723.png 1568w, https:\/\/docs.theironnetwork.org\/hulk\/wp-content\/uploads\/sites\/13\/2020\/04\/Selection_142.png 1595w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>You can add the component on any page in the template. You need to follow the steps given below: \u200c Step 1:\u00a0Please add the code given below in the page where you want to add the component. &lt;Avatar alt=&#8221;Remy Sharp&#8221; src={require(&#8216;assets\/Images\/avatars\/user-1.jpg&#8217;)} \/> Step 2:\u00a0Now Import the component from its parent library. import Avatar from &#8216;@material-ui\/core\/Avatar&#8217;; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/docs.theironnetwork.org\/hulk\/wp-json\/wp\/v2\/pages\/192"}],"collection":[{"href":"https:\/\/docs.theironnetwork.org\/hulk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.theironnetwork.org\/hulk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/hulk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/hulk\/wp-json\/wp\/v2\/comments?post=192"}],"version-history":[{"count":6,"href":"https:\/\/docs.theironnetwork.org\/hulk\/wp-json\/wp\/v2\/pages\/192\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/docs.theironnetwork.org\/hulk\/wp-json\/wp\/v2\/pages\/192\/revisions\/334"}],"wp:attachment":[{"href":"https:\/\/docs.theironnetwork.org\/hulk\/wp-json\/wp\/v2\/media?parent=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}