Sidebar is a panel component displayed as an overlay at the edges of the screen. The examples show the four values of position (left, right, top and bottom) and fullScreen="true", which displays the sidebar in full screen mode. The sidebars are opened with the client side API.
<div class="card">
<p:sidebar ref="sidebar1">
<h3>Left Sidebar</h3>
</p:sidebar>
<p:sidebar ref="sidebar2" position="right">
<h3>Right Sidebar</h3>
</p:sidebar>
<p:sidebar ref="sidebar3" position="top">
<h3>Top Sidebar</h3>
</p:sidebar>
<p:sidebar ref="sidebar4" position="bottom">
<h3>Bottom Sidebar</h3>
</p:sidebar>
<p:sidebar ref="sidebar5" fullScreen="true">
<h3>Full Screen Sidebar</h3>
</p:sidebar>
<p:commandButton icon="pi pi-arrow-right" type="button" onclick="PF('sidebar1').show()" styleClass="mr-2" />
<p:commandButton icon="pi pi-arrow-left" type="button" onclick="PF('sidebar2').show()" styleClass="mr-2" />
<p:commandButton icon="pi pi-arrow-down" type="button" onclick="PF('sidebar3').show()" styleClass="mr-2" />
<p:commandButton icon="pi pi-arrow-up" type="button" onclick="PF('sidebar4').show()" styleClass="mr-2" />
<p:commandButton icon="pi pi-external-link" type="button" onclick="PF('sidebar5').show()"/>
</div>