1.0.7 • Published 4 years ago
@hashicorp/hashi-image v1.0.7
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 docssteps
(arr): optional array of screen sizes to optimize forsizes
(str): optional same as sizes on an img tag docsclasses
(str): optional any classes to be added to the imagealt
(str): optional alt text for the image docsaspect_ratio
(arr or str): optional automatically crops to aspect ratio. first two items in the array are the ratio (ex.[16,9]
), and the third is the base width that images will be cropped to in IE, which doesn't support srcset (ex.[16,9,500]
). if string is provided, brackets should be excluded (ex.16,9,500
). string will be converted to arrayparams
(obj): optional params passed directly to imgix
Dependents:
hero
logo-grid
nav
person-list
resource-list
text-and-image
1.0.7
4 years ago
2.1.1-alpha.0
5 years ago
2.1.0-alpha.0
5 years ago
2.0.9-alpha.0
5 years ago
2.0.8-alpha.0
5 years ago
2.0.7-alpha.0
5 years ago
2.0.6-alpha.0
5 years ago
2.0.5-alpha.0
5 years ago
2.0.4-alpha.0
5 years ago
2.0.3-alpha.0
5 years ago
2.0.2-alpha.0
5 years ago
2.0.1-alpha.0
5 years ago
2.0.0-alpha.0
5 years ago
1.0.6
5 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago