Skip to content

Component GridPicture

Paul Dempsey edited this page Feb 3, 2023 · 13 revisions

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 ->

  1. sources: [GridImage Props]
  2. fallback: : ImageId, Unique identifier taken from image path in (media.gutools.co.uk/images/...)
  3. fallbackSize: string, Comma separated string for each for given media size conditions
  4. altText : string, Descriptor
  5. fallbackImgType: Image format ('jpg | png')

Storybook Component -> https://support-ui.gutools.co.uk/?path=/docs/grid-images-gridpicture--editions-packshot

πŸ™‹β€β™€οΈ General Information

🎨 Client-side 101

βš›οΈ React+Redux

πŸ’° Payment methods

πŸŽ› Deployment & Testing

πŸ“Š AB Testing

🚧 Helper Components

πŸ“š Other Reference

1️⃣ Quickstarts

πŸ›€οΈ Tracking

Clone this wiki locally