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

Examples
tsx
import React from 'react' import {ImageContentWrapper, Skeleton} from '@shopify/shop-minis-react' export default function MyComponent() { return ( <ImageContentWrapper publicId="xyz123" width={300} height={200} Loader={<Skeleton />} onLoad={() => console.log('Image loaded')} /> ) }Description
With a public ID as the source
tsx
import React from 'react' import {ImageContentWrapper, Skeleton} from '@shopify/shop-minis-react' export default function MyComponent() { return ( <ImageContentWrapper publicId="xyz123" width={300} height={200} Loader={<Skeleton />} onLoad={() => console.log('Image loaded')} /> ) }Description
With an external ID as the source
tsx
import React from 'react' import {ImageContentWrapper, Skeleton} from '@shopify/shop-minis-react' export default function MyComponent() { return ( <ImageContentWrapper externalId="xyz123" width={300} height={200} Loader={<Skeleton />} onLoad={() => console.log('Image loaded')} /> ) }