Socket
Socket
Sign inDemoInstall

@bbc/psammead-byline

Package Overview
Dependencies
Maintainers
40
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bbc/psammead-byline

A component that displays an author's name, title, and optional avatar.


Version published
Weekly downloads
113
increased by91.53%
Maintainers
40
Weekly downloads
 
Created
Source

psammead-byline - Known Vulnerabilities Dependency Status peerDependencies Status Storybook GitHub license npm version PRs Welcome

Description

The Byline component is designed to display an author's full name, title, and optional avatar.

Installation

npm install @bbc/psammead-byline --save

Props

ArgumentTypeRequiredDefaultExample
servicestringYesN/A'news'
avatarobjectNonullSee below.
namestringYesN/A'John Smith'
titlestringYesN/A'Art editor'

Avatar

ArgumentTypeRequiredDefaultExample
srcstringYesN/A'http://www.bbc.co.uk/img.jpg'
altstringNonull'A person wearing glasses.'

Usage

import Byline from "@bbc/psammead-byline"

<Byline
  service='news'
  avatar={{ src: 'http://www.bbc.co.uk/john-smith.jpg' }}
  name="John Smith"
  title="Art editor"
/>

When to use this component

This component should be used when crediting the author of a piece of content, such as an article.

When not to use this component

N/A.

Accessibility notes

By default the avatar img is rendered with an empty alt attribute as it is expected to be of the person, which the adjacent name describes.

Roadmap

There are no known future changes to this component.

Contributing

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.

Code of Conduct

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.

License

Psammead is Apache 2.0 licensed.

FAQs

Package last updated on 30 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc