Vue3 Breadcrumb

Vue3 Breadcrumb

·

1 min read

Vue3 Breadcrumb provides contextual information about page hierarchy. It supports Vue 3 with PrimeVue 3 and Vue 2 with PrimeVue 2.

Setup

Refer to PrimeVue setup documentation for download and installation steps for your environment such as Vue CLI, Vite or browser.

Import

import Breadcrumb from 'primevue/breadcrumb';

Breadcrumb uses the common MenuModel API to define the items, visit MenuModel API for details.

Getting Started

Breadcrumb requires a collection of menuitems as its model and a home item.

<Breadcrumb :home="home" :model="items" />
export default {
    data() {
        return {
            home: {icon: 'pi pi-home', to: '/'},
            items: [
                {label: 'Computer'},
                {label: 'Notebook'},
                {label: 'Accessories'},
                {label: 'Backpacks'},
                {label: 'Item'}
            ]
        }
    }
}

Theming

Breadcrumb supports various themes featuring Material, Bootstrap, Fluent as well as your own custom themes via the Designer tool.

Resources

Visit the PrimeVue Breadcrumb showcase for demos and documentation.