
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@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>
BulletedLists 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
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.

Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.

Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.

Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.