Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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
REI Cedar Style Framework - Vue Component for Breadcrumb
We found that @rei/cdr-breadcrumb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.