Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@rei/cdr-link
Advanced tools
For the most up-to-date information, see REI Cedar documentation.
tag | string | 'a' |
---|---|---|
name | type | default |
Sets valid HTML element tag. Possible values: { ‘a’ | ‘button’ }
modifier | string | N/A |
---|---|---|
name | type | default |
Modifies the style variant for this component. Possible values: { ‘standalone’ }
href | string | "#” |
---|---|---|
name | type | default |
Sets URL to cdr-link href property. The tag prop requires value of <a>
default |
---|
name |
Sets the innerHTML for cdr-link. This includes text and html markup |
Resources are available within the cdrLink package:
@rei/cdr-link
cdr-link.css
To incorporate the required assets for a component, use the following steps:
Install the cdrLink
package using npm
in your terminal:
Terminal
npm i -s @rei/cdr-link
main.js
// import your required css.
import "@rei/cdr-link/dist/cdr-link.css";
// If your link will display an icon ensure you also include the icon’s css file.
import "@rei/cdr-link/dist/cdr-icon.css";
local.vue
<template>
...
<cdr-link href="rei.com">Ten Essentials.</cdr-link>
...
</template>
<script>
import { CdrLink } from '@rei/cdr-link';
export default {
...
components: {
CdrLink
}
}
</script>
By default, the component renders using an anchor element and requires an href
attribute or tag to render a valid accessible link.
<cdr-link href="http://rei.com">
Visit REI
</cdr-link>
Use the tag prop to render the link as a <button>
element that presents a link appearance without an href
attribute.
<cdr-link tag="button">
Show Details
</cdr-link>
To effect the visual presentation pass the following variants to the modifier attribute of the cdrLink component.
Standalone
: Include as an independent call to action to expand content, remove filters, or provide additional informationFAQs
REI Cedar Style Framework - Vue Component for Link
We found that @rei/cdr-link 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.