Sidebar

Sidebar is a panel component displayed as an overlay.

Documentation

Left Sidebar

Right Sidebar

Top Sidebar

Bottom Sidebar

Full Screen Sidebar

<p:sidebar widgetVar="sidebar1" baseZIndex="10000">
    <h1 style="font-weight:normal">Left Sidebar</h1>
    <p:commandButton value="Cancel" oncomplete="PF('sidebar1').hide()"/>
</p:sidebar>

<p:sidebar widgetVar="sidebar2" position="right" baseZIndex="10000">
    <h1 style="font-weight:normal">Right Sidebar</h1>
    <p:commandButton value="Cancel" oncomplete="PF('sidebar2').hide()"/>
</p:sidebar>

<p:sidebar widgetVar="sidebar3" position="top" baseZIndex="10000">
    <h1 style="font-weight:normal">Top Sidebar</h1>
    <p:commandButton value="Cancel" oncomplete="PF('sidebar3').hide()"/>
</p:sidebar>

<p:sidebar widgetVar="sidebar4" position="bottom" baseZIndex="10000">
    <h1 style="font-weight:normal">Bottom Sidebar</h1>
    <p:commandButton value="Cancel" oncomplete="PF('sidebar4').hide()"/>
</p:sidebar>

<p:sidebar widgetVar="sidebar5" fullScreen="true" baseZIndex="10000">
    <h1 style="font-weight:normal">Full Screen Sidebar</h1>
    <p:commandButton value="Cancel" oncomplete="PF('sidebar5').hide()"/>
</p:sidebar>

<p:commandButton icon="pi pi-arrow-right" oncomplete="PF('sidebar1').show()" />
<p:commandButton icon="pi pi-arrow-left" oncomplete="PF('sidebar2').show()" />
<p:commandButton icon="pi pi-arrow-down" oncomplete="PF('sidebar3').show()" />
<p:commandButton icon="pi pi-arrow-up" oncomplete="PF('sidebar4').show()" />
<p:commandButton icon="pi pi-external-link" oncomplete="PF('sidebar5').show()" />

FREE THEMES

Built-in component themes created by the PrimeFaces Theme Designer.

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.