0.2.0 • Published 8 years ago
@hashicorp-tmp/hashi-image v0.2.0
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 imagesteps(arr): optional array of screen sizes to optimize forsizes(str): optional same as sizes on an img tagclasses(str): optional any classes to be added to the imagealt(str): optional alt text for the imageaspect_ratio(arr): optional automatically adjusts to aspect ratio, for example[16,9]params(obj): optional params passed directly to imgix
Dependents:
herologo-gridnavperson-listresource-listtext-and-image