Video
The Video
component renders a video
for the Storefront API's Video object.
Example code
Anchor link to section titled "Example code"
Name | Type | Description |
---|---|---|
data | PartialDeep<VideoType> |
An object with fields that correspond to the Storefront API's Video object. |
options? | ImageSizeOptions |
An object of image size options for the video's previewImage . |
Component type
Anchor link to section titled "Component type"The Video
component is a shared component, which means that it renders on both the server and the client. For more information about component types, refer to React Server Components.
Storefront API data
Anchor link to section titled "Storefront API data"The data
prop is an object with fields that correspond to the Storefront API's Video object: