Skip to main content

Video

The Video component renders a video for the Storefront API's Video object. The component outputs a video element. You can customize this component using passthrough props.

PartialDeep<VideoType, {recurseIntoArrays: true}>
required

An object with fields that correspond to the Storefront API's Video object.

Anchor to previewImageOptions
previewImageOptions

An object of image size options for the video's previewImage. Uses shopifyImageLoader to generate the poster URL.

Anchor to sourceProps
sourceProps
HTMLAttributes<HTMLSourceElement> & { 'data-testid'?: string; }

Props that will be passed to the video element's source children elements.



Was this page helpful?