MediaFile
The MediaFile component renders the media for the Storefront API's
Media object. It renders an Image, Video, an ExternalVideo, or a ModelViewer depending on the __typename of the data prop.
Anchor to propsProps
MediaFile renders an Image, Video, , or component. Use the prop to customize the props sent to each of these components.
- Anchor to datadatadataPartialDeep<MediaEdgeType['node'], {recurseIntoArrays: true}>PartialDeep<MediaEdgeType['node'], {recurseIntoArrays: true}>requiredrequired
An object with fields that correspond to the Storefront API's Media object.
- Anchor to aboutaboutaboutstring | undefinedstring | undefined
- Anchor to accessKeyaccessKeyaccessKeystring | undefinedstring | undefined
- Anchor to aria-activedescendantaria-activedescendantaria-activedescendantstring | undefinedstring | undefined
Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
- Anchor to aria-atomicaria-atomicaria-atomicBooleanish | undefinedBooleanish | undefined
Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
- Anchor to aria-autocompletearia-autocompletearia-autocomplete"none" | "inline" | "list" | "both" | undefined"none" | "inline" | "list" | "both" | undefined
Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
- Anchor to aria-braillelabelaria-braillelabelaria-braillelabelstring | undefinedstring | undefined
Defines a string value that labels the current element, which is intended to be converted into Braille.
- Anchor to aria-brailleroledescriptionaria-brailleroledescriptionaria-brailleroledescriptionstring | undefinedstring | undefined
Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
- Anchor to aria-busyaria-busyaria-busyBooleanish | undefinedBooleanish | undefined
Used to represent DOM API's where users can either pass true or false as a boolean or as its equivalent strings.
- Anchor to aria-checkedaria-checkedaria-checkedboolean | "false" | "mixed" | "true" | undefinedboolean | "false" | "mixed" | "true" | undefined
Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
- Anchor to aria-colcountaria-colcountaria-colcountnumber | undefinednumber | undefined
Defines the total number of columns in a table, grid, or treegrid.
- Anchor to aria-colindexaria-colindexaria-colindexnumber | undefinednumber | undefined
Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
- Anchor to aria-colindextextaria-colindextextaria-colindextextstring | undefinedstring | undefined
Defines a human readable text alternative of aria-colindex.
- Anchor to aria-colspanaria-colspanaria-colspannumber | undefinednumber | undefined
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
- Anchor to aria-controlsaria-controlsaria-controlsstring | undefinedstring | undefined
Identifies the element (or elements) whose contents or presence are controlled by the current element.
- Anchor to aria-currentaria-currentaria-currentboolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefinedboolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined
Indicates the element that represents the current item within a container or set of related elements.
- Anchor to aria-describedbyaria-describedbyaria-describedbystring | undefinedstring | undefined
Identifies the element (or elements) that describes the object.
- Anchor to aria-descriptionaria-descriptionaria-descriptionstring | undefinedstring | undefined
Defines a string value that describes or annotates the current element.
- Anchor to aria-detailsaria-detailsaria-detailsstring | undefinedstring | undefined
Identifies the element that provides a detailed, extended description for the object.
- Anchor to aria-disabledaria-disabledaria-disabledBooleanish | undefinedBooleanish | undefined
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
- Anchor to aria-errormessagearia-errormessagearia-errormessagestring | undefinedstring | undefined
Identifies the element that provides an error message for the object.
- Anchor to aria-expandedaria-expandedaria-expandedBooleanish | undefinedBooleanish | undefined
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
- Anchor to aria-flowtoaria-flowtoaria-flowtostring | undefinedstring | undefined
Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
- Anchor to aria-haspopuparia-haspopuparia-haspopupboolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefinedboolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
- Booleanish | undefinedBooleanish | undefined
Indicates whether the element is exposed to an accessibility API.
- Anchor to aria-invalidaria-invalidaria-invalidboolean | "false" | "true" | "grammar" | "spelling" | undefinedboolean | "false" | "true" | "grammar" | "spelling" | undefined
Indicates the entered value does not conform to the format expected by the application.
- Anchor to aria-keyshortcutsaria-keyshortcutsaria-keyshortcutsstring | undefinedstring | undefined
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
- Anchor to aria-labelaria-labelaria-labelstring | undefinedstring | undefined
Defines a string value that labels the current element.
- Anchor to aria-labelledbyaria-labelledbyaria-labelledbystring | undefinedstring | undefined
Identifies the element (or elements) that labels the current element.
- Anchor to aria-levelaria-levelaria-levelnumber | undefinednumber | undefined
Defines the hierarchical level of an element within a structure.
- Anchor to aria-livearia-livearia-live"off" | "assertive" | "polite" | undefined"off" | "assertive" | "polite" | undefined
Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
- Anchor to aria-modalaria-modalaria-modalBooleanish | undefinedBooleanish | undefined
Indicates whether an element is modal when displayed.
- Anchor to aria-multilinearia-multilinearia-multilineBooleanish | undefinedBooleanish | undefined
Indicates whether a text box accepts multiple lines of input or only a single line.
- Anchor to aria-multiselectablearia-multiselectablearia-multiselectableBooleanish | undefinedBooleanish | undefined
Indicates that the user may select more than one item from the current selectable descendants.
- Anchor to aria-orientationaria-orientationaria-orientation"horizontal" | "vertical" | undefined"horizontal" | "vertical" | undefined
Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
- Anchor to aria-ownsaria-ownsaria-ownsstring | undefinedstring | undefined
Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
- Anchor to aria-placeholderaria-placeholderaria-placeholderstring | undefinedstring | undefined
Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
- Anchor to aria-posinsetaria-posinsetaria-posinsetnumber | undefinednumber | undefined
Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
- Anchor to aria-pressedaria-pressedaria-pressedboolean | "false" | "mixed" | "true" | undefinedboolean | "false" | "mixed" | "true" | undefined
Indicates the current "pressed" state of toggle buttons.
- Anchor to aria-readonlyaria-readonlyaria-readonlyBooleanish | undefinedBooleanish | undefined
Indicates that the element is not editable, but is otherwise operable.
- Anchor to aria-relevantaria-relevantaria-relevant| "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined| "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
- Anchor to aria-requiredaria-requiredaria-requiredBooleanish | undefinedBooleanish | undefined
Indicates that user input is required on the element before a form may be submitted.
- Anchor to aria-roledescriptionaria-roledescriptionaria-roledescriptionstring | undefinedstring | undefined
Defines a human-readable, author-localized description for the role of an element.
- Anchor to aria-rowcountaria-rowcountaria-rowcountnumber | undefinednumber | undefined
Defines the total number of rows in a table, grid, or treegrid.
- Anchor to aria-rowindexaria-rowindexaria-rowindexnumber | undefinednumber | undefined
Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
- Anchor to aria-rowindextextaria-rowindextextaria-rowindextextstring | undefinedstring | undefined
Defines a human readable text alternative of aria-rowindex.
- Anchor to aria-rowspanaria-rowspanaria-rowspannumber | undefinednumber | undefined
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
- Anchor to aria-selectedaria-selectedaria-selectedBooleanish | undefinedBooleanish | undefined
Indicates the current "selected" state of various widgets.
- Anchor to aria-setsizearia-setsizearia-setsizenumber | undefinednumber | undefined
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
- Anchor to aria-sortaria-sortaria-sort"none" | "ascending" | "descending" | "other" | undefined"none" | "ascending" | "descending" | "other" | undefined
Indicates if items in a table or grid are sorted in ascending or descending order.
- Anchor to aria-valuemaxaria-valuemaxaria-valuemaxnumber | undefinednumber | undefined
Defines the maximum allowed value for a range widget.
- Anchor to aria-valueminaria-valueminaria-valueminnumber | undefinednumber | undefined
Defines the minimum allowed value for a range widget.
- Anchor to aria-valuenowaria-valuenowaria-valuenownumber | undefinednumber | undefined
Defines the current value for a range widget.
- Anchor to aria-valuetextaria-valuetextaria-valuetextstring | undefinedstring | undefined
Defines the human readable text alternative of aria-valuenow for a range widget.
- Anchor to autoCapitalizeautoCapitalizeautoCapitalize"off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {})"off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {})
- Anchor to autoCorrectautoCorrectautoCorrectstring | undefinedstring | undefined
- Anchor to autoFocusautoFocusautoFocusboolean | undefinedboolean | undefined
- Anchor to autoSaveautoSaveautoSavestring | undefinedstring | undefined
- Anchor to childrenchildrenchildrenReactNode | undefinedReactNode | undefined
Represents all of the things React can render.
Where
only represents JSX,
represents everything that can be rendered.- Anchor to classNameclassNameclassNamestring | undefinedstring | undefined
- Anchor to colorcolorcolorstring | undefinedstring | undefined
- Anchor to contentcontentcontentstring | undefinedstring | undefined
- Anchor to contentEditablecontentEditablecontentEditableBooleanish | "inherit" | "plaintext-only" | undefinedBooleanish | "inherit" | "plaintext-only" | undefined
- string | undefinedstring | undefined
- Anchor to dangerouslySetInnerHTMLdangerouslySetInnerHTMLdangerouslySetInnerHTML{ // Should be InnerHTML['innerHTML']. // But unfortunately we're mixing renderer-specific type declarations. __html: string | TrustedHTML; } | undefined{ // Should be InnerHTML['innerHTML']. // But unfortunately we're mixing renderer-specific type declarations. __html: string | TrustedHTML; } | undefined
- Anchor to datatypedatatypedatatypestring | undefinedstring | undefined
- Anchor to defaultCheckeddefaultCheckeddefaultCheckedboolean | undefinedboolean | undefined
- Anchor to defaultValuedefaultValuedefaultValuestring | number | readonly string[] | undefinedstring | number | readonly string[] | undefined
- Anchor to dirdirdirstring | undefinedstring | undefined
- Anchor to draggabledraggabledraggableBooleanish | undefinedBooleanish | undefined
Used to represent DOM API's where users can either pass true or false as a boolean or as its equivalent strings.
- Anchor to enterKeyHintenterKeyHintenterKeyHint"enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined"enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined
- Anchor to exportpartsexportpartsexportpartsstring | undefinedstring | undefined
- boolean | undefinedboolean | undefined
- Anchor to idididstring | undefinedstring | undefined
- Anchor to inlistinlistinlistanyany
- Anchor to inputModeinputModeinputMode"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined
Hints at the type of data that might be entered by the user while editing the element or its contents
- Anchor to isisisstring | undefinedstring | undefined
Specify that a standard HTML element should behave like a defined custom built-in element
- Anchor to itemIDitemIDitemIDstring | undefinedstring | undefined
- Anchor to itemPropitemPropitemPropstring | undefinedstring | undefined
- Anchor to itemRefitemRefitemRefstring | undefinedstring | undefined
- Anchor to itemScopeitemScopeitemScopeboolean | undefinedboolean | undefined
- Anchor to itemTypeitemTypeitemTypestring | undefinedstring | undefined
- Anchor to langlanglangstring | undefinedstring | undefined
- Anchor to mediaOptionsmediaOptionsmediaOptionsMediaOptionsMediaOptions
The options for the
Image,Video,, orcomponents.- Anchor to noncenoncenoncestring | undefinedstring | undefined
- Anchor to onAbortonAbortonAbortReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onAbortCaptureonAbortCaptureonAbortCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onAnimationEndonAnimationEndonAnimationEndAnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined
- Anchor to onAnimationEndCaptureonAnimationEndCaptureonAnimationEndCaptureAnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined
- Anchor to onAnimationIterationonAnimationIterationonAnimationIterationAnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined
- Anchor to onAnimationIterationCaptureonAnimationIterationCaptureonAnimationIterationCaptureAnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined
- Anchor to onAnimationStartonAnimationStartonAnimationStartAnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined
- Anchor to onAnimationStartCaptureonAnimationStartCaptureonAnimationStartCaptureAnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined
- Anchor to onAuxClickonAuxClickonAuxClickMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onAuxClickCaptureonAuxClickCaptureonAuxClickCaptureMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onBeforeInputonBeforeInputonBeforeInputInputEventHandler<T> | undefinedInputEventHandler<T> | undefined
- Anchor to onBeforeInputCaptureonBeforeInputCaptureonBeforeInputCaptureFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onBluronBluronBlurFocusEventHandler<T> | undefinedFocusEventHandler<T> | undefined
- Anchor to onBlurCaptureonBlurCaptureonBlurCaptureFocusEventHandler<T> | undefinedFocusEventHandler<T> | undefined
- Anchor to onCanPlayonCanPlayonCanPlayReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onCanPlayCaptureonCanPlayCaptureonCanPlayCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onCanPlayThroughonCanPlayThroughonCanPlayThroughReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onCanPlayThroughCaptureonCanPlayThroughCaptureonCanPlayThroughCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onChangeonChangeonChangeFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onChangeCaptureonChangeCaptureonChangeCaptureFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onClickonClickonClickMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onClickCaptureonClickCaptureonClickCaptureMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onCompositionEndonCompositionEndonCompositionEndCompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined
- Anchor to onCompositionEndCaptureonCompositionEndCaptureonCompositionEndCaptureCompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined
- Anchor to onCompositionStartonCompositionStartonCompositionStartCompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined
- Anchor to onCompositionStartCaptureonCompositionStartCaptureonCompositionStartCaptureCompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined
- Anchor to onCompositionUpdateonCompositionUpdateonCompositionUpdateCompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined
- Anchor to onCompositionUpdateCaptureonCompositionUpdateCaptureonCompositionUpdateCaptureCompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined
- MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onCopyonCopyonCopyClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined
- Anchor to onCopyCaptureonCopyCaptureonCopyCaptureClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined
- Anchor to onCutonCutonCutClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined
- Anchor to onCutCaptureonCutCaptureonCutCaptureClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined
- Anchor to onDoubleClickonDoubleClickonDoubleClickMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onDoubleClickCaptureonDoubleClickCaptureonDoubleClickCaptureMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onDragonDragonDragDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragCaptureonDragCaptureonDragCaptureDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragEndonDragEndonDragEndDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragEndCaptureonDragEndCaptureonDragEndCaptureDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragEnteronDragEnteronDragEnterDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragEnterCaptureonDragEnterCaptureonDragEnterCaptureDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragExitonDragExitonDragExitDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragExitCaptureonDragExitCaptureonDragExitCaptureDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragLeaveonDragLeaveonDragLeaveDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragLeaveCaptureonDragLeaveCaptureonDragLeaveCaptureDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragOveronDragOveronDragOverDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragOverCaptureonDragOverCaptureonDragOverCaptureDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragStartonDragStartonDragStartDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDragStartCaptureonDragStartCaptureonDragStartCaptureDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDroponDroponDropDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDropCaptureonDropCaptureonDropCaptureDragEventHandler<T> | undefinedDragEventHandler<T> | undefined
- Anchor to onDurationChangeonDurationChangeonDurationChangeReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onDurationChangeCaptureonDurationChangeCaptureonDurationChangeCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onEmptiedonEmptiedonEmptiedReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onEmptiedCaptureonEmptiedCaptureonEmptiedCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onEncryptedonEncryptedonEncryptedReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onEncryptedCaptureonEncryptedCaptureonEncryptedCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onEndedonEndedonEndedReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onEndedCaptureonEndedCaptureonEndedCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onErroronErroronErrorReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onErrorCaptureonErrorCaptureonErrorCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onFocusonFocusonFocusFocusEventHandler<T> | undefinedFocusEventHandler<T> | undefined
- Anchor to onFocusCaptureonFocusCaptureonFocusCaptureFocusEventHandler<T> | undefinedFocusEventHandler<T> | undefined
- Anchor to onGotPointerCaptureonGotPointerCaptureonGotPointerCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onGotPointerCaptureCaptureonGotPointerCaptureCaptureonGotPointerCaptureCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onInputonInputonInputFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onInputCaptureonInputCaptureonInputCaptureFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onInvalidonInvalidonInvalidFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onInvalidCaptureonInvalidCaptureonInvalidCaptureFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onKeyDownonKeyDownonKeyDownKeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefined
- Anchor to onKeyDownCaptureonKeyDownCaptureonKeyDownCaptureKeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefined
- Anchor to onKeyUponKeyUponKeyUpKeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefined
- Anchor to onKeyUpCaptureonKeyUpCaptureonKeyUpCaptureKeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefined
- Anchor to onLoadonLoadonLoadReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onLoadCaptureonLoadCaptureonLoadCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onLoadedDataonLoadedDataonLoadedDataReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onLoadedDataCaptureonLoadedDataCaptureonLoadedDataCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onLoadedMetadataonLoadedMetadataonLoadedMetadataReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onLoadedMetadataCaptureonLoadedMetadataCaptureonLoadedMetadataCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onLoadStartonLoadStartonLoadStartReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onLoadStartCaptureonLoadStartCaptureonLoadStartCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onLostPointerCaptureonLostPointerCaptureonLostPointerCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onLostPointerCaptureCaptureonLostPointerCaptureCaptureonLostPointerCaptureCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onMouseDownonMouseDownonMouseDownMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseDownCaptureonMouseDownCaptureonMouseDownCaptureMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseEnteronMouseEnteronMouseEnterMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseLeaveonMouseLeaveonMouseLeaveMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseMoveonMouseMoveonMouseMoveMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseMoveCaptureonMouseMoveCaptureonMouseMoveCaptureMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseOutonMouseOutonMouseOutMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseOutCaptureonMouseOutCaptureonMouseOutCaptureMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseOveronMouseOveronMouseOverMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseOverCaptureonMouseOverCaptureonMouseOverCaptureMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseUponMouseUponMouseUpMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onMouseUpCaptureonMouseUpCaptureonMouseUpCaptureMouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onPasteonPasteonPasteClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined
- Anchor to onPasteCaptureonPasteCaptureonPasteCaptureClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined
- Anchor to onPauseonPauseonPauseReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onPauseCaptureonPauseCaptureonPauseCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onPlayonPlayonPlayReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onPlayCaptureonPlayCaptureonPlayCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onPlayingonPlayingonPlayingReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onPlayingCaptureonPlayingCaptureonPlayingCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onPointerCancelonPointerCancelonPointerCancelPointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerCancelCaptureonPointerCancelCaptureonPointerCancelCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerDownonPointerDownonPointerDownPointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerDownCaptureonPointerDownCaptureonPointerDownCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerEnteronPointerEnteronPointerEnterPointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerLeaveonPointerLeaveonPointerLeavePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerMoveonPointerMoveonPointerMovePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerMoveCaptureonPointerMoveCaptureonPointerMoveCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerOutonPointerOutonPointerOutPointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerOutCaptureonPointerOutCaptureonPointerOutCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerOveronPointerOveronPointerOverPointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerOverCaptureonPointerOverCaptureonPointerOverCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerUponPointerUponPointerUpPointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onPointerUpCaptureonPointerUpCaptureonPointerUpCapturePointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined
- Anchor to onProgressonProgressonProgressReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onProgressCaptureonProgressCaptureonProgressCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onRateChangeonRateChangeonRateChangeReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onRateChangeCaptureonRateChangeCaptureonRateChangeCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onResetonResetonResetFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onResetCaptureonResetCaptureonResetCaptureFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onScrollonScrollonScrollUIEventHandler<T> | undefinedUIEventHandler<T> | undefined
- Anchor to onScrollCaptureonScrollCaptureonScrollCaptureUIEventHandler<T> | undefinedUIEventHandler<T> | undefined
- Anchor to onSeekedonSeekedonSeekedReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onSeekedCaptureonSeekedCaptureonSeekedCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onSeekingonSeekingonSeekingReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onSeekingCaptureonSeekingCaptureonSeekingCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onSelectonSelectonSelectReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onSelectCaptureonSelectCaptureonSelectCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onStalledonStalledonStalledReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onStalledCaptureonStalledCaptureonStalledCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onSubmitonSubmitonSubmitFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onSubmitCaptureonSubmitCaptureonSubmitCaptureFormEventHandler<T> | undefinedFormEventHandler<T> | undefined
- Anchor to onSuspendonSuspendonSuspendReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onSuspendCaptureonSuspendCaptureonSuspendCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onTimeUpdateonTimeUpdateonTimeUpdateReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onTimeUpdateCaptureonTimeUpdateCaptureonTimeUpdateCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onTouchCancelonTouchCancelonTouchCancelTouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined
- Anchor to onTouchCancelCaptureonTouchCancelCaptureonTouchCancelCaptureTouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined
- Anchor to onTouchEndonTouchEndonTouchEndTouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined
- Anchor to onTouchEndCaptureonTouchEndCaptureonTouchEndCaptureTouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined
- Anchor to onTouchMoveonTouchMoveonTouchMoveTouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined
- Anchor to onTouchMoveCaptureonTouchMoveCaptureonTouchMoveCaptureTouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined
- Anchor to onTouchStartonTouchStartonTouchStartTouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined
- Anchor to onTouchStartCaptureonTouchStartCaptureonTouchStartCaptureTouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined
- Anchor to onTransitionEndonTransitionEndonTransitionEndTransitionEventHandler<T> | undefinedTransitionEventHandler<T> | undefined
- Anchor to onTransitionEndCaptureonTransitionEndCaptureonTransitionEndCaptureTransitionEventHandler<T> | undefinedTransitionEventHandler<T> | undefined
- Anchor to onVolumeChangeonVolumeChangeonVolumeChangeReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onVolumeChangeCaptureonVolumeChangeCaptureonVolumeChangeCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onWaitingonWaitingonWaitingReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onWaitingCaptureonWaitingCaptureonWaitingCaptureReactEventHandler<T> | undefinedReactEventHandler<T> | undefined
- Anchor to onWheelonWheelonWheelWheelEventHandler<T> | undefinedWheelEventHandler<T> | undefined
- Anchor to onWheelCaptureonWheelCaptureonWheelCaptureWheelEventHandler<T> | undefinedWheelEventHandler<T> | undefined
- Anchor to partpartpartstring | undefinedstring | undefined
- Anchor to prefixprefixprefixstring | undefinedstring | undefined
- Anchor to propertypropertypropertystring | undefinedstring | undefined
- Anchor to radioGroupradioGroupradioGroupstring | undefinedstring | undefined
- Anchor to relrelrelstring | undefinedstring | undefined
- Anchor to resourceresourceresourcestring | undefinedstring | undefined
- Anchor to resultsresultsresultsnumber | undefinednumber | undefined
- Anchor to revrevrevstring | undefinedstring | undefined
- Anchor to roleroleroleAriaRole | undefinedAriaRole | undefined
- Anchor to securitysecuritysecuritystring | undefinedstring | undefined
- Anchor to slotslotslotstring | undefinedstring | undefined
- Anchor to spellCheckspellCheckspellCheckBooleanish | undefinedBooleanish | undefined
Used to represent DOM API's where users can either pass true or false as a boolean or as its equivalent strings.
- Anchor to stylestylestyleCSSProperties | undefinedCSSProperties | undefined
- Anchor to suppressContentEditableWarningsuppressContentEditableWarningsuppressContentEditableWarningboolean | undefinedboolean | undefined
- Anchor to suppressHydrationWarningsuppressHydrationWarningsuppressHydrationWarningboolean | undefinedboolean | undefined
- Anchor to tabIndextabIndextabIndexnumber | undefinednumber | undefined
- Anchor to titletitletitlestring | undefinedstring | undefined
- Anchor to translatetranslatetranslate"yes" | "no" | undefined"yes" | "no" | undefined
- Anchor to typeoftypeoftypeofstring | undefinedstring | undefined
- Anchor to unselectableunselectableunselectable"on" | "off" | undefined"on" | "off" | undefined
- Anchor to vocabvocabvocabstring | undefinedstring | undefined
- Anchor to aria-dropeffectaria-dropeffectaria-dropeffect"none" | "copy" | "execute" | "link" | "move" | "popup" | undefined"none" | "copy" | "execute" | "link" | "move" | "popup" | undefineddeprecateddeprecated
Indicates what functions can be performed when a dragged object is released on the drop target.
Deprecatedin ARIA 1.1
Deprecated:in ARIA 1.1
- Anchor to aria-grabbedaria-grabbedaria-grabbedBooleanish | undefinedBooleanish | undefineddeprecateddeprecated
Indicates an element's "grabbed" state in a drag-and-drop operation.
Deprecatedin ARIA 1.1
Deprecated:in ARIA 1.1
- Anchor to onKeyPressonKeyPressonKeyPressKeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefineddeprecateddeprecated
- Deprecated
Use
orinsteadDeprecated:Use
orinstead - Anchor to onKeyPressCaptureonKeyPressCaptureonKeyPressCaptureKeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefineddeprecateddeprecated
- Deprecated
Use
orinsteadDeprecated:Use
orinstead
MediaOptions
- externalVideo
Props that will only apply when an `<ExternalVideo />` is rendered
Omit< React.ComponentProps<typeof ExternalVideo>['options'], 'data' > - image
Props that will only apply when an `<Image />` is rendered
Omit<HydrogenImageProps, 'data'> - modelViewer
Props that will only apply when a `<ModelViewer />` is rendered
Omit<typeof ModelViewer, 'data'> - video
Props that will only apply when a `<Video />` is rendered
Omit<React.ComponentProps<typeof Video>, 'data'>
HydrogenImageProps
React.ComponentPropsWithRef<'img'> & HydrogenImageBasePropsHydrogenImageBaseProps
- aspectRatio
The aspect ratio of the image, in the format of `width/height`.
string - crop
The crop position of the image.
Crop - data
Data mapping to the [Storefront API `Image`](https://shopify.dev/docs/api/storefront/2026-04/objects/Image) object. Must be an Image object.
PartialDeep<ImageType, {recurseIntoArrays: true}> - loader
A function that returns a URL string for an image.
Loader - srcSetOptions
An optional prop you can use to change the default srcSet generation behaviour
SrcSetOptions
Crop
'center' | 'top' | 'bottom' | 'left' | 'right'Loader
- params
LoaderParams
stringLoaderParams
- crop
The URL param that controls the cropping region
Crop - height
The URL param that controls height
number - src
The base URL of the image
string - width
The URL param that controls width
number
SrcSetOptions
- incrementSize
The increment by which to increase for each size, in pixels
number - intervals
The number of sizes to generate
number - placeholderWidth
The size used for placeholder fallback images
number - startingWidth
The smallest image size
number