Component GridPicture - guardian/support-frontend GitHub Wiki
The GridPicture component can show completely different images at different breakpoints
A React Component linking multiple Guardian Grid Image library images (https://media.gutools.co.uk/search) with a PICTURE html tag containing multiple SOURCE tags and a fallback IMG tag.
GridPicture Props supplied are ->
- sources: [GridImage Props]
- fallback: : ImageId, Unique identifier taken from image path in (media.gutools.co.uk/images/...)
- fallbackSize: string, Comma separated string for each for given media size conditions
- altText : string, Descriptor
- fallbackImgType: Image format ('jpg | png')
Storybook Component -> https://support-ui.gutools.co.uk/?path=/docs/grid-images-gridpicture--editions-packshot