{"id":253,"date":"2019-10-04T05:44:55","date_gmt":"2019-10-04T05:44:55","guid":{"rendered":"https:\/\/docs.theironnetwork.org\/reactify\/?page_id=253"},"modified":"2019-10-10T08:21:16","modified_gmt":"2019-10-10T08:21:16","slug":"app-bar","status":"publish","type":"page","link":"https:\/\/docs.theironnetwork.org\/reactify\/app-bar\/","title":{"rendered":"App Bar"},"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> Please 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;AppBar position=\"static\" color=\"default\"&gt;<br>  &lt;Toolbar&gt;<br>     &lt;IconButton color=\"inherit\" aria-label=\"Menu\"&gt;<br>        &lt;MenuIcon \/&gt;<br>     &lt;\/IconButton&gt;<br>     &lt;h5 className=\"mb-0\"&gt;<br>        Project Name<br>     &lt;\/h5&gt;<br>  &lt;\/Toolbar&gt;<br>&lt;\/AppBar&gt;<\/pre>\n\n\n\n<p><strong>Step 2:<\/strong> Now Import the component from its parent library.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import AppBar from '@material-ui\/core\/AppBar';<br>import Toolbar from '@material-ui\/core\/Toolbar';<br>import IconButton from '@material-ui\/core\/IconButton';<br>import MenuIcon from '@material-ui\/icons\/Menu';<\/pre>\n\n\n\n<p>We have given you an example of adding a simple app bar on the Ecommerce Dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1024\" height=\"224\" src=\"https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar-1024x224.png\" alt=\"\" class=\"wp-image-423\" srcset=\"https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar-1024x224.png 1024w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar-300x66.png 300w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar-768x168.png 768w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar.png 1306w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><br><\/figcaption><\/figure>\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 <code>src-&gt;routes-&gt;components-&gt;app-bar-&gt;components<\/code> folder. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1024\" height=\"228\" src=\"https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar2-1024x228.png\" alt=\"\" class=\"wp-image-424\" srcset=\"https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar2-1024x228.png 1024w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar2-300x67.png 300w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar2-768x171.png 768w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar2-1568x349.png 1568w, https:\/\/docs.theironnetwork.org\/reactify\/wp-content\/uploads\/sites\/4\/2019\/10\/app-bar2.png 1616w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<div class=\"pld-like-dislike-wrap pld-template-1\">\n    <div class=\"pld-like-wrap  pld-common-wrap\">\n    <a href=\"javascript:void(0);\" class=\"pld-like-trigger pld-like-dislike-trigger \" title=\"\" data-post-id=\"253\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-ip-check=\"0\" data-user-check=\"1\">\n                        <i class=\"fas fa-thumbs-up\"><\/i>\n                    <\/a>\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\n    <a href=\"javascript:void(0);\" class=\"pld-dislike-trigger pld-like-dislike-trigger \" title=\"\" data-post-id=\"253\" data-trigger-type=\"dislike\" data-ip-check=\"0\" data-restriction=\"cookie\" data-user-check=\"1\">\n                        <i class=\"fas fa-thumbs-down\"><\/i>\n                    <\/a>\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\n<\/div><\/div>\n\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: Please add the code given below in the page where you want to add the component. &lt;AppBar position=&#8221;static&#8221; color=&#8221;default&#8221;&gt; &lt;Toolbar&gt; &lt;IconButton color=&#8221;inherit&#8221; aria-label=&#8221;Menu&#8221;&gt; &lt;MenuIcon \/&gt; &lt;\/IconButton&gt; &lt;h5 className=&#8221;mb-0&#8243;&gt; Project Name &lt;\/h5&gt; &lt;\/Toolbar&gt;&lt;\/AppBar&gt; Step [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/253"}],"collection":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":6,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/253\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/253\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/media?parent=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}