next-cloudinary
next-cloudinary copied to clipboard
[Feature] Cloudinary Product Gallery Widget
Feature Request
Is your feature request related to a problem? Please describe.
https://cloudinary.com/documentation/product_gallery
Describe the solution you'd like
<CldProductGallery ... />
The component should reflect the same patterns used for the CldUploadWidget
both in how the scripts are loaded and how the options are managed and passed in.
The initial options made available should be typed.
The initial iteration of this can be an MVP to get a basic product gallery working without extensive top level prop support, such as an options option that can expose the core Product Gallery API.
@colbyfayock, I would like to work on this, cqan you assign it to me Could you tell me more about what all things are needed to be added
hey @Vishalk91-4 sure thing!
The goal of this ticket is to create a new component, CldProductGallery, that would act as a wrapper around the Cloudinary Product Gallery widget: https://cloudinary.com/documentation/product_gallery
This widget uses a script include to load as well as some initialization code. The idea would be this would all be included to make it easy for someone to drop on a page with an intuitive API.
A good example of a component that does something similar is CldUploadWidget: https://github.com/colbyfayock/next-cloudinary/blob/main/next-cloudinary/src/components/CldUploadWidget/CldUploadWidget.tsx
You could certainly use that as an example for how you create the Product Gallery component
Additionally here's some reference code for getting it started: https://github.com/cloudinary-community/cloudinary-examples/tree/main/examples/react-product-gallery
Though it could use some optimization for how the script loads and all, which you could get inspiration from the Upload Widget
let me know what you think!
@Vishalk91-4 are you still working on this?
@colbyfayock Yes, will be submitting the PR tomorrow
hey @Vishalk91-4 did you still plan on working on this?