druxt-breadcrumb

0.17.2 • Public • Published

DruxtBreadcrumb

npm CircleCI Known Vulnerabilities codecov

Decoupled Router based Breadcrumb Druxt component.

Links

Install

$ npm install druxt-breadcrumb

Nuxt.js

Add module to nuxt.config.js

module.exports = {
  modules: ['druxt-breadcrumb'],
  druxt: {
    baseUrl: 'https://demo-api.druxtjs.org',
  },
}

Usage

DruxtBreadcrumb component

The DruxtBreadcrumb component uses the Vue Router and DruxtRouter to build a list of crumbs.

<DruxtBreadcrumb />

The crumbs can be themed by providing a default scoped slot:

<DruxtBreadcrumb>
  <template #default="{ crumbs }">
    {{ crumbs }}
  </template>
</DruxtBreadcrumb>

The DruxtBreadcrumb also provide a DruxtWrapper component for theming:

<!-- DruxtBreadcrumbDefault.vue -->
<template>
  <div>
    <slot />
  <div>
</template>

See the DruxtBreadcrumb API documentation for more information.

Options

Base Druxt options

These options are available to all Druxt modules, in the nuxt.config.js file.

Option Type Required Default Description
druxt.axios object No {} Axios instance settings.
druxt.baseUrl string Yes null Base URL for the Drupal installation.

Package Sidebar

Install

npm i druxt-breadcrumb

Homepage

druxtjs.org

Weekly Downloads

53

Version

0.17.2

License

MIT

Unpacked Size

15.2 kB

Total Files

7

Last publish

Collaborators

  • deciphered