npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vaadin-component-factory/vcf-breadcrumb

v3.0.1

Published

Web Component providing an easy way to display breadcrumb.

Readme

<vcf-breadcrumb>

npm version

This is the LitElement based version of <vcf-breadcrumbs> Web Component.

Installation

Install vcf-breadcrumb:

npm i @vaadin-component-factory/vcf-breadcrumb --save

Usage

Once installed, import it in your application:

import '@vaadin-component-factory/vcf-breadcrumb';

Add <vcf-breadcrumbs> element to the page. Inside added element add few <vcf-breadcrumb> child elements, with href attribute. In case you want some <vcf-breadcrumb> elements collapse when there's not enough space, add attribute collapse to those elements. When user clicks on a <vcf-breadcrumb> element, it will navigate to the URL from href attribute of the element.

<vcf-breadcrumbs>
  <vcf-breadcrumb href="#">Home</vcf-breadcrumb>
  <vcf-breadcrumb href="#">Directory</vcf-breadcrumb>
  <vcf-breadcrumb href="#" collapse>Components</vcf-breadcrumb>
  <vcf-breadcrumb href="#" collapse>VCF Components</vcf-breadcrumb>
  <vcf-breadcrumb>Breadcrumb</vcf-breadcrumb>
</vcf-breadcrumbs>

breadcrumbs-01 breadcrumbs-02 breadcrumbs-03

Updates since version 3.0.0

When the application does not load the Aura or Lumo theme, the component uses a minimal set of functional styles that provide a foundation for a custom theme.

ThemableMixin has been removed from the component, and injecting styles into the component's shadow root using registerStyles is no longer supported. Use global CSS to style the component using part names and CSS variables instead.

Updates since version 2.0.0

  • Lit based component with theming support.
  • The first item in the breadcrumb is always shown in full.
  • The items can be collapsed when space runs out. This is configurable by using the attribute collapse. When availabe space is not enough to display the full label, then the label is shown with ellipsis.
  • If space is even more limited, and some breadcrumbs have the collapse attribute:
    • Consecutive collapsed items are grouped into ranges.
    • Each range is hidden when necessary and replaced with an ellipsis element.
  • shift attribute from previous version was removed. Responsive behavior is now given by the collapse attribute implementation.

Customize separators

By default, there are few css variables that help you update the separator's style:

| CSS Variable | Definition | Default value | |--------------|------------|---------------| | --vcf-breadcrumb-separator-font-family | Font family of the separator icon | lumo-icons | | --vcf-breadcrumb-separator-symbol | Separator icon | var(--lumo-icons-angle-right) | | --vcf-breadcrumb-separator-color | Color of the separator icon | var(--lumo-contrast-40pct) | | --vcf-breadcrumb-separator-size | Size of the separator icon | var(--lumo-font-size-s) |
| --vcf-breadcrumb-separator-margin | Margin of the separator icon | 0 |
| --vcf-breadcrumb-separator-padding | Padding of the separator icon | 0 var(--lumo-space-xs) |

Updates since version 2.2.0

Added support for Mobile Mode. It can be triggered in two ways:

  • Based on a fixed breakpoint (same as other Vaadin components): (max-width: 450px), (max-height: 450px) or
  • Programmatically, using the flag forceMobileMode, which allows to enable mobile layout manually

When in Mobile Mode, Breadcrumbs are styled for mobile navigation showing only back path.

  • Shows the last breadcrumb unless it's the current one
  • Shows the breadcrumb directly before the current one

breadcrumbs-mobile-mode

By default, mobile mode shows a back icon that can be customized using the CSS variable: --vcf-breadcrumb-mobile-back-symbol

Running demo

  1. Fork the vcf-breadcrumb repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the vcf-breadcrumb directory, run npm install to install dependencies.

  4. Run npm start to open the demo.

Contributing

To contribute to the component, please read the guideline first.

License

Distributed under Apache Licence 2.0.

Sponsored development

Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: Support and Pricing.