@times-components/article-byline

3.13.43 • Public • Published

Article Byline

An article byline is a piece of styled text that consists of an author, or list of authors, either with, or without author job titles and locations. This data typically derives from an Abstract Syntax Tree ("AST"), with the resulting components being passed to article byline as children. The consumer of article byline determines whether the byline should be a link or text, and will import the appropriate byline component as neccessary.

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

This package uses yarn (latest) to run unit tests on each platform with jest.

yarn test:web

Visit the official storybook to see our available article byline templates, or see the article byline with links templates.

Package Sidebar

Install

npm i @times-components/article-byline

Weekly Downloads

3,331

Version

3.13.43

License

BSD-3-Clause

Unpacked Size

214 kB

Total Files

17

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools