gatsby-transformer-cloudinary icon indicating copy to clipboard operation
gatsby-transformer-cloudinary copied to clipboard

Add option to generate props for cloudinary-react

Open ghost opened this issue 5 years ago • 0 comments

For example: can add a cldFixed, cldFluid, cldSomeTransformation objects, like the fluid/fixed objects that are added for easy integration with gatsby-image.

It could then be used like this:

import {Image} from 'cloudinary-react'; /* get cldTransformations using GraphQL*/

in render(): <Image {...cldTransformations.fixed}/> <Image {...cldTransformations.faceThumbnail}/> <Image {...cldTransformations.responsive}/> etc...

ghost avatar Nov 08 '19 09:11 ghost