Etch component
Image 1
Documentation
An image from the media library, with an optional caption under it.
How to use it
- Pick the image with Source. Without one, it shows a filler image.
- Caption adds a centered line of small text under the image. Leave it empty to hide it.
- Maximum Size is the largest file the page loads: pick the image's widest at any screen width, such as 768 px for an image in a column. Leave it at Full for an image that can fill the screen.
- Turn on Open Large to open the image large over the page with a click. The page needs MAC Lightbox 1 too; without it, the image stays a plain image.
- Lightbox Set names the set it opens with: images with the same name open together, under that name. Leave it empty for the images of its group, or this one alone.
Good to know
- The alt text comes from the image's Alt Text in the media library, so fill it in there.
- The image comes with its srcset, so browsers load a size that fits the screen, up to Maximum Size. The large view does too, up to the full file, whatever Maximum Size is.
- Maximum Size's options are this site's image sizes: on a site with other sizes, change them once in the component.
- With Open Large, the caption shows in the large view too.
- For a post's featured image, put
{this.image.id}in Source and{this.image.caption}in Caption. - The link's name for screen readers, "View larger", is in the component: change it once per site, for example into Romanian.
Reference
Read from the component's JSON, so it's always current.
Loading the reference