
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@vaadin-component-factory/vcf-breadcrumb
Advanced tools
Web Component providing an easy way to display breadcrumb.
This is the LitElement based version of <vcf-breadcrumbs>
Web Component.
Install vcf-breadcrumb
:
npm i @vaadin-component-factory/vcf-breadcrumb --save
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>
collapse
. When availabe space is not enough to display the full label, then the label is shown with ellipsis.collapse
attribute:
shift
attribute from previous version was removed. Responsive behavior is now given by the collapse
attribute implementation.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) |
Added support for Mobile Mode. It can be triggered in two ways:
(max-width: 450px), (max-height: 450px)
orforceMobileMode
, which allows to enable mobile layout manuallyWhen in Mobile Mode, Breadcrumbs are styled for mobile navigation showing only back path.
By default, mobile mode shows a back icon that can be customized using the CSS variable: --vcf-breadcrumb-mobile-back-symbol
Fork the vcf-breadcrumb
repository and clone it locally.
Make sure you have npm installed.
When in the vcf-breadcrumb
directory, run npm install
to install dependencies.
Run npm start
to open the demo.
To contribute to the component, please read the guideline first.
Distributed under Apache Licence 2.0.
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.
FAQs
Did you know?
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.