+ Import
+
+import Toolbar from 'primevue/toolbar';
+
+
+ Getting Started
+ Toolbar is a container component defined using Toolbar element. Left aligned content is placed inside a template with "left" name and similarly "right" for right alignment..
+
+<Toolbar>
+ <template slot="left">
+ <Button label="New" icon="pi pi-plus" style="margin-right: .25em" />
+ <Button label="Upload" icon="pi pi-upload" class="p-button-success" />
+ <i class="pi pi-bars p-toolbar-separator" style="margin-right: .25em" />
+ <Button label="Save" icon="pi pi-check" class="p-button-warning" />
+ </template>
+
+ <template slot="right">
+ <Button icon="pi pi-search" style="margin-right: .25em" />
+ <Button icon="pi pi-calendar" class="p-button-success" style="margin-right: .25em" />
+ <Button icon="pi pi-times" class="p-button-danger" />
+ </template>
+</Toolbar>
+
+
+ Styling
+ Following is the list of structural style classes, for theming classes visit theming page.
+
+
+
+
+ Name |
+ Element |
+
+
+
+
+ p-toolbar |
+ Main container element. |
+
+
+ p-toolbar-group-left |
+ Left content container. |
+
+
+ p-toolbar-group-right |
+ Right content container. |
+
+
+
+
+
+ Dependencies
+ None.
+
+
+