Image Content Wrapper
The ImageContentWrapper component renders images uploaded via the useCreateImageContent hook. Use it instead of raw Image component when displaying any user-generated content. It accepts either a publicId or externalId.
Uploaded images are moderated by Shop. Additionally, rendered images can be reported by users for moderation.
Uploaded images are moderated by Shop. Additionally, rendered images can be reported by users for moderation.
Anchor to propsProps
The component renders images uploaded via the hook. Use it instead of raw Image component when displaying any user-generated content. It accepts either a or . > Note: Uploaded images are moderated by Shop. Additionally, rendered images can be reported by users for moderation.
- Anchor to externalIdexternal
Idexternal Id stringstring The external ID of the uploaded image (use this OR publicId)
- Anchor to heightheightheightnumbernumber
Image height
- Anchor to LoaderLoaderLoaderReact.ReactNode | stringReact.ReactNode | string
Loading placeholder
- Anchor to onLoadon
Loadon Load () => void() => void Callback when the image loads
- Anchor to publicIdpublic
Idpublic Id stringstring The public ID of the uploaded image (use this OR externalId)
- Anchor to widthwidthwidthnumbernumber
Image width