0.2.0 • Published 6 years ago

@hashicorp-tmp/hashi-image v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
6 years ago

Image

Super optimized image element, pulls from dato and formats for 7 screen sizes in two formats. Skips optimization for SVGs.

Props

  • src (str): url of the image
  • steps (arr): optional array of screen sizes to optimize for
  • sizes (str): optional same as sizes on an img tag
  • classes (str): optional any classes to be added to the image
  • alt (str): optional alt text for the image
  • aspect_ratio (arr): optional automatically adjusts to aspect ratio, for example [16,9]
  • params (obj): optional params passed directly to imgix

Dependents:

  • hero
  • logo-grid
  • nav
  • person-list
  • resource-list
  • text-and-image
0.2.0

6 years ago

0.1.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago