New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

@frankhoodbs/breadcrumb-cmp

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frankhoodbs/breadcrumb-cmp

Breadcrumb component

latest
npmnpm
Version
4.0.2
Version published
Maintainers
4
Created
Source

Breadcrumb component

component for generating navigation breadcrumbs. navigation element that shows a user's current position within a hierarchical website structure.

componente per la generazione di breadcrumb di navigazione. elemento di navigazione che mostra la posizione corrente di un utente all'interno di una struttura gerarchica del sito web.

Version License

API Reference

Props

NameTypeDescription
data-itemsBreadcrumbItem[]Required. Items list
data-current-item-labelstringdefault is `Selected item', used to help screen readers whle reading the current item in the list
data-char-limitnumberNumber of letters to show, truncates excess with '...' sequence. default is 70
data-aria-labelstringbreadcrumbs list aria label for accessibility

BreadcrumbItem

type definiton for each item in data-items prop

nameTypeDescription
hrefstringRequired. url for item
titlestringdescriptive title for accessibility reasons
namestringRequired. Displayed name of the breadcrumb item
isCurrentbooleandefault false. states if this is the current item (usually the page we are on).
relstringrel attribute for breadcrumb link. Possible values are alternate, author, bookmark, external, help, license, next, nofollow, noopener, noreferrer, opener, prev, search, tag
referrerpolicystringreferrerpolicy attribute for breadcrumb link. Possible values are no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
targetstringtarget attribute for breadcrumb link. Possible values are _blank ,_parent ,_self ,_top

CSS variables

NamedefaultDescription
--breadcrumb-pt0px.BreadcrumbCmp padding-top
--breadcrumb-colorinherit.BreadcrumbCmp color
--breadcrumb-font-size1rem.BreadcrumbCmp font-size
--breadcrumb-menu-displayinherit.menu display
--breadcrumb-menu-mt0.menu margin-top
--breadcrumb-menu-mr0.menu margin-right
--breadcrumb-menu-mb0.menu margin-bottom
--breadcrumb-menu-ml0.menu margin-left
--breadcrumb-menu-pt0.menu padding-top
--breadcrumb-menu-pr0.menu padding-right
--breadcrumb-menu-pb0.menu padding-bottom
--breadcrumb-menu-pl0.menu padding-left
--breadcrumb-menu-item-content-mx7px.menu-item::after margin-x
--breadcrumb-menu-item-content>.menu-item::after content
--breadcrumb-menu-item-py14px.menu-link padding-y
--breadcrumb-link-vertical-alignmiddle.menu-link vertical-align
--breadcrumb-link-hover-color#000000.menu-link:hover color
--breadcrumb-link-hover-text-decorationunderline.menu-link:hover text-decoration
--breadcrumb-link-aria-current-hover-color#000000.menu-link[aria-current='true'] color

Usage/Examples

<breadcrumb-cmp
  :data-current-item-label="'Current item'"
  :data-items="[
    {
      href: '#',
      title: 'title 1',
      name: 'name 1',
      rel: 'nofollow',
      isCurrent: false,
      referrerpolicy: 'no-referrer',
      target: '_self',
    },
    {
      href: '#',
      title: 'title 2',
      name: 'name 2',
      rel: 'nofollow',
      isCurrent: true,
      referrerpolicy: 'no-referrer',
      target: '_self',
    },
    {
      href: '#',
      title: 'title 3',
      name: 'name 3',
      rel: 'nofollow',
      isCurrent: false,
      referrerpolicy: 'no-referrer',
      target: '_self',
    },
  ]"
  :data-char-limit="40"
  :data-aria-label="'Aria label'"
/>

Screenshots

Component Screenshot

FAQs

Package last updated on 26 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts