Socket
Socket
Sign inDemoInstall

@times-components/article-image

Package Overview
Dependencies
129
Maintainers
3
Versions
691
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @times-components/article-image

Article Image


Version published
Maintainers
3
Created

Readme

Source

Article Image

Article content often includes images which are defined in the article image package. Article images are configured to be one of several different types which dictates the general layout, particularly in relation to their accompanying caption.

  • primary - main image of the article, running full width
  • secondary - any secondary article image, generally half width, with captions next to the image
  • inline - images that allow content to wrap around them

Ratio configuration controls the size of the image, and whether it is portrait or landscape.

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

Keywords

FAQs

Last updated on 08 May 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc