vwc-breadcrumb 2.37.2
Install from the command line:
Learn more about npm packages
$ npm install @vonage/vwc-breadcrumb@2.37.2
Install via package.json:
"@vonage/vwc-breadcrumb": "2.37.2"
About this version
In order to use breadcrumb
you'll need to import both breadcrumb
and breadcrumb-item
:
import '@vonage/vwc-breadcrumb-item/vwc-breadcrumb-item.js';
import '@vonage/vwc-breadcrumb/vwc-breadcrumb.js';
<vwc-breadcrumb>
<vwc-breadcrumb-item href="#" text="breadcrumb"></vwc-breadcrumb-item>
<vwc-breadcrumb-item href="#" text="breadcrumb"></vwc-breadcrumb-item>
<vwc-breadcrumb-item href="#" text="breadcrumb"></vwc-breadcrumb-item>
<vwc-breadcrumb-item text="breadcrumb"></vwc-breadcrumb-item>
</vwc-breadcrumb>
Multiple hidden crumbs
<vwc-breadcrumb>
<vwc-breadcrumb-item href="#" text="breadcrumb"></vwc-breadcrumb-item>
<vwc-breadcrumb-item text="..."></vwc-breadcrumb-item>
<vwc-breadcrumb-item href="#" text="breadcrumb"></vwc-breadcrumb-item>
</vwc-breadcrumb>