Druxt.js Breadcrumb
Provides a Breadcrumb Vue.js component to be used within a Druxt (DRUpal nuXT) project.
Links
Install
$ npm install druxt-breadcrumb
Usage
Add module to nuxt.config.js
module.exports = {
modules: [
'druxt-breadcrumb',
],
druxt: {
baseUrl: 'https://example.com',
breadcrumb: {
component: 'b-breadcrumb'
}
}
}
Options
Base Druxt options
These options are available to all Druxt modules.
Option | Type | Required | Default | Description |
---|
axios | object | No | {} | Axios instance settings. |
baseUrl | string | Yes | null | Base URL for the Drupal installation. |
Druxt Breadcrumb options
These options are specific to this module.
Option | Type | Required | Default | Description |
---|
breadcrumb.component | string | No | div | The component to use to render the breadcrumb. E.g., b-breadcrumb |
breadcrumb.home | boolean | No | true | Show optional 'Home' crumb. |