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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vrembem/breadcrumb

v3.0.19

Published

A navigation component that shows the hierarchical path to a users current location.

Downloads

96

Readme

Breadcrumb

A navigation component that shows the hierarchical path to a users current location.

npm version

Documentation

Installation

npm install @vrembem/breadcrumb

Styles

@use "@vrembem/breadcrumb";

Markup

The breadcrumb component is composed of three parts: breadcrumb, breadcrumb__item and breadcrumb__link.

<ol class="breadcrumb">
  <li class="breadcrumb__item">
    <a href="/" class="breadcrumb__link">Home</a>
  </li>
  ...
  <li class="breadcrumb__item">
    Current Page
  </li>
</ol>

Modifiers

breadcrumb_invert

Inverts the colors of the breadcrumb component to be used on dark backgrounds when more contrast is needed.

<ol class="breadcrumb breadcrumb_invert">
  ...
</ol>

Customization

Sass Variables

| Variable | Default | Description | | --------------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | | $prefix-block | null | String to prefix blocks with. | | $prefix-element | "__" | String to prefix elements with. | | $prefix-modifier | "_" | String to prefix modifiers with. | | $prefix-modifier-value | "_" | String to prefix modifier values with. | | $color | core.$color-subtle | Sets the color property. | | $delimiter | "/" | Sets the delimiter character used after each breadcrumb__item element. | | $delimiter-color | core.$border-color-dark | Sets the color property for the delimiter character. | | $delimiter-padding | 0 0.5em | Sets the padding property for the delimiter character. | | $delimiter-last | false | Whether or not to render the delimiter at the end of the breadcrumb. | | $link-color | base.$link-color | Sets the color property on the breadcrumb__link element. | | $link-color-hover | base.$link-color-hover | Sets the color property on the breadcrumb__link element for its :hover state. | | $link-border | core.$border | Sets the border property on the breadcrumb__link element. | | $link-border-hover | 1px solid base.$link-color-hover | Sets the border property on the breadcrumb__link element for its :hover state. | | $invert-color | core.$color-invert-subtle | Sets the color property on the breadcrumb_invert modifier. | | $invert-delimiter-color | core.$border-color-invert-dark | Sets the color property for the delimiter character on the breadcrumb_invert modifier. | | $invert-link-color | base.$link-invert-color | Sets the color property on the breadcrumb__link element on the breadcrumb_invert modifier. | | $invert-link-color-hover | base.$link-invert-color-hover | Sets the color property on the breadcrumb__link element on the breadcrumb_invert modifier for its :hover state. | | $invert-link-border | core.$border-invert | Sets the border property on the breadcrumb__link element on the breadcrumb_invert modifier. | | $invert-link-border-hover | 1px solid core.$white | Sets the border property on the breadcrumb__link element on the breadcrumb_invert modifier for its :hover state. |