Toolbar is a grouping component for buttons and other content.

import Toolbar from 'primevue/toolbar';

Toolbar provides start, center and end properties to place content at these sections.

    <template #start>
        <Button icon="pi pi-plus" class="mr-2" severity="secondary" text />
        <Button icon="pi pi-print" class="mr-2" severity="secondary" text />
        <Button icon="pi pi-upload" severity="secondary" text />

    <template #center>
                <i class="pi pi-search" />
            <InputText placeholder="Search" />

    <template #end> <SplitButton label="Save" :model="items"></SplitButton></template>

A customized toolbar with navigation bar functionality.

<Toolbar style="border-radius: 3rem; padding: 1rem 1rem 1rem 1.5rem">
    <template #start>
        <div class="flex align-items-center gap-2">
            <svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="">
                <path d="..." fill="var(--text-color)" />
                <path d="..." fill="transparent" />
            <Button label="Files" text plain />
            <Button label="Edit" text plain />
            <Button label="View" text plain />

    <template #end>
        <div class="flex align-items-center gap-2">
            <Button label="Share" severity="contrast" size="small" />
            <Avatar image="" style="width: 32px; height: 32px" />

Screen Reader

Toolbar uses toolbar role to the root element, aria-orientation is not included as it defaults to "horizontal". Any valid attribute is passed to the root element so you may add additional properties like aria-labelledby to define the element if required.

Keyboard Support

Component does not include any interactive elements. Arbitrary content can be placed with templating and elements like buttons inside should follow the page tab sequence.