Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@rei/cdr-list
Advanced tools
name | type | Default |
---|---|---|
Tag | string | "ul" |
Tag allows the user to define what html list root to use. Possible values: ul, ol |
name | type | Default |
---|---|---|
modifier | string | N/A |
Modifier allows the user to pass a style variant to this component. Possible values: ordered, unordered, compact, inline |
name |
---|
Default |
innerHTML on the inside of the anchor component |
Resources are available within the cdr-list package:
Name | Type | Description |
---|---|---|
@rei/cdr-list | Node module package | Import the component into your project |
cdr-list.css | Style sheet | Component specific styles |
To incorporate the required assets for a component, use the following steps:
Install the cdr-list
package using npm in your terminal:
Terminal
npm i -s @rei/cdr-list
main.js
// import your required css.
import "@rei/cdr-list/dist/cdr-list.css";
local.vue
<template>
<cdr-list>
<li> item one </li>
<li> item two </li>
</cdr-list>
</template>
<script>
import { CdrList } from "@rei/cdr-list";
export default {
components: {
CdrList
}
};
</script>
Visual style and semantic meaning are managed independently by providing:
By default the cdr-list
component renders as an unordered and undecorated "bare" list. To use an ordered list pass <ol>
to the tag property.
<cdr-list tag="ol">
<li> item one </li>
<li> item two </li>
</cdr-list>
The cdr-list
component has decoupled the semantic tags <ul>
and <ol>
from visual presentation.
It is possible to render a semantic ordered list <ol>
as a visually non styled or bulleted list using the cdr-list
modifiers. With this decoupling, individual list items can contain a variety of HTML elements, including paragraphs, headings, form elements, and other (nested) lists. Ensure that content is structured and follows design guidelines.
Following are different types of lists:
<ul>
element and multiple list item <li>
elements<ol>
element and multiple list item <li>
elementscdr-list
can be nested into another list<cdr-list>
<li> Unordered list item text
<cdr-list tag="ol">
<li>Ordered list item text</li>
</cdr-list>
</li>
</cdr-list>
Note that the tag itself does not determine display, a modifier must be added for list styles. Add one of the following variants to the modifier attribute of the cdr-list
tag to change the visual presentation:
Name | Description | Example |
---|---|---|
unordered | The unordered modifier adds a bullet decorator to child list items and a ‘en-dash’ decorator to grandchild list items. This variant can be used on both <ul> or <ol> list types. | <cdr-list modifier="unordered" > |
ordered | The ordered modifier adds a numeric decorator to child list items and a ‘en-dash’ decorator to grandchild list items. This variant can be used on both <ul> or <ol> list types. | <cdr-list tag="ol" modifier="ordered" > |
compact | The compact modifier reduces the vertical space between list items for non-inline list variants. For inline variants the compact modifier reduces the horizontal space between list items. | <cdr-list modifier="compact"> |
inline | The inline modifier is intended for bare or unordered list variants. In ether case this can be combined with compact to adjust the spacing of inline list variants. | <cdr-list modifier=" inline"> |
<ul>
or <ol>
FAQs
REI Cedar Style Framework - Vue Component for List
The npm package @rei/cdr-list receives a total of 5 weekly downloads. As such, @rei/cdr-list popularity was classified as not popular.
We found that @rei/cdr-list 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.