
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@rei/cdr-breadcrumb
Advanced tools
For the most up-to-date information, see REI Cedar documentation.
name | type | Default |
---|---|---|
items | array | N/A |
An array of breadcrumb objects that each contain a "url" and "name" property |
name | type | Default |
---|---|---|
truncationEnabled | boolean | true |
Controls the ability to truncate. If a user sets this to false, truncation will no longer occur |
name | type | Default |
---|---|---|
truncationThreshold | number | 0.8 |
This property respresents the ratio between breadcrumb width vs container width that truncation will occur |
name | type | Default |
---|---|---|
truncationXSThreshold | number | 1 |
This property respresents the ratio between breadcrumb width vs container width that truncation will occur on the XS breakpoint |
@rei/cdr-breadcrumb
cdr-breadcrumb.css
To incorporate the required assets for a component, use the following steps:
Install the cdr-breadcrumb
package using npm
in your terminal:
Terminal
npm i -s @rei/cdr-breadcrumb
main.js
// import your required css.
import "@rei/cdr-breadcrumb/dist/cdr-breadcrumb.css";
local.vue
<template>
<cdr-breadcrumb :items="breadcrumbItems"/>
</template>
<script>
import { CdrBreadcrumb } from '@rei/cdr-breadcrumb';
export default {
components: {
CdrBreadcrumb
},
data () {
breadcrumbItems: [
{
item: {
name: ‘Great GrandParent Page’,
url: “<UrlBreadcrumb1>”
}
},
{
item: {
name: “Grandparent Page”,
url: “<UrlBreadcrumb2>”
}
}
{
item: {
name: “Parent Page”,
url: “<UrlBreadcrumb3>”
}
}
]
}
}
</script>
The items
property requires an array of objects, in the format shown above. Notable values include:
item.url (optional)
string where the breadcrumb item segment links when clicked or tappeditem.name (required)
string for the breadcrumb text item segmentThe array must be ordered appropriately from low index rendered on the left, to high index on the right.
The below example shows alternatively setting items
using an array literal.
<cdr-breadcrumb :items="[{item:{url:'', name: 1}},{item:{url:'', name: 2}},{item:{url:'', name: 3}}]"/>
Use truncationEnabled
to disable the truncation functionality. Below shows truncation being disabled.
<cdr-breadcrumb :truncation-enabled="false" :items="[{url:'', name: 1},{url:'', name: 2},{url:'', name: 3}]"/>
Use the truncationThreshold
prop to alter when truncation occurs:
truncationThreshold
valueThe default value is 0.80 ( 80% ).
Below shows using truncationThreshold
to set truncation to occur at 50%.
<cdr-breadcrumb :truncation-threshold="0.50" :items="breadcrumbItems"/>
Use the truncationXSThreshold
prop to alter when truncation occurs:
truncationXSThreshold
value on XS screen sizesThe default value is 1 ( 100% ).
Below shows using truncationXSThreshold
to set truncation to occur at 70%.
<cdr-breadcrumb :truncation-x-s-threshold=“0.70” :items="breadcrumbItems"/>
Web browsers, plug-ins, and assistive technologies use headings to provide in-page navigation. To ensure that usage of this component complies with accessibility guidelines, do the following:
This component has compliance with following WebAIM’s accessibility guidelines:
<nav>
element identifies the structure of cdr-breadcrumb as a breadcrumb
trail for screen readersaria-current
attribute is not defined for the last itemaria-expanded="false"
attribute when the user has the ability to expand the breadcrumbFAQs
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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.