
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@bbc/psammead-bulleted-list
Advanced tools
The BulletedList
component is a styled bulleted (unordered) list that works for right-to-left and left-to-right languages.
npm install @bbc/psammead-bulleted-list --save
Argument | Type | Required | Default | Example |
---|---|---|---|---|
dir | string | No | 'ltr' | One of 'rtl' 'ltr' |
script | script | Yes | N/A | { canon: { groupA: { fontSize: '28', lineHeight: '32',}, groupB: { fontSize: '32', lineHeight: '36', }, groupD: { fontSize: '44', lineHeight: '48', }, }, trafalgar: { groupA: { fontSize: '20', lineHeight: '24', }, groupB: { fontSize: '24', lineHeight: '28', }, groupD: { fontSize: '32', lineHeight: '36', }, }, } |
service | string | Yes | N/A | 'news' |
bulletPointShape | 'round' or 'square' | No | N/A | 'round' |
bulletPointColour | CSS Colour | No | '#3F3F42' | '#ff0000' |
Use BulletedList
in place of a ul
element with required props and a BulletedListItem
in place of an li
.
import BulletedList, { BulletedListItem } from '@bbc/psammead-bulleted-list';
const props = {
dir: 'ltr',
script: latin,
service: 'news',
bulletPointShape: 'round', // or 'square'
};
<BulletedList {...props}>
<BulletedListItem>A list item</BulletedListItem>
<BulletedListItem>Another item</BulletedListItem>
</BulletedList>
BulletedList
s can be used wherever you need a standard GEL unordered list.
It's not ideal for when you need a custom bullet. Use the standard <ul>
instead if you need to style your bullets.
The bullets in psammead-bulleted-lists
are not read by screen readers and are generated using pseudo-elements.
We have added role list and role listitem to the corresponding items due to a VoiceOver bug to reinstate the list semantics
Psammead is completely open source. We are grateful for any contributions, whether they be new components, bug fixes or general improvements. Please see our primary contributing guide which can be found at the root of the Psammead repository.
We welcome feedback and help on this work. By participating in this project, you agree to abide by the code of conduct. Please take a moment to read it.
Psammead is Apache 2.0 licensed.
FAQs
React styled component for ordered and unordered lists
The npm package @bbc/psammead-bulleted-list receives a total of 238 weekly downloads. As such, @bbc/psammead-bulleted-list popularity was classified as not popular.
We found that @bbc/psammead-bulleted-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 40 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.