@times-components/article-label

2.18.13 • Public • Published

Article Label

An article label is similar to an article flag, in that it is attached to a particular article as a piece of styled textual data. Article label, however, indicates which section an article is located in (e.g. "NEWS" or "COMMENT", or sometimes what content an article has (e.g. "VIDEO" or "YOUTUBE").

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 label templates.

Package Sidebar

Install

npm i @times-components/article-label

Weekly Downloads

4,473

Version

2.18.13

License

BSD-3-Clause

Unpacked Size

154 kB

Total Files

10

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools