@times-components/image

6.17.12 • Public • Published

Image

The image package maintains two distinct but related components called image and modalImage. A loading Times placeholder is displayed until the relevant image has been loaded. If the image never loads (i.e. it errors), the placeholder will still be visible.

On web

For web the package is very simple, with the image component serving simple DOM elements. There is no concept of a modal for web.

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

Readme

Keywords

Package Sidebar

Install

npm i @times-components/image

Weekly Downloads

4,847

Version

6.17.12

License

BSD-3-Clause

Unpacked Size

210 kB

Total Files

24

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools