Media File
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 accessKeyaccess
Keyaccess Key string | 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 autoCapitalizeauto
Capitalizeauto Capitalize "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {})"off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) - Anchor to autoCorrectauto
Correctauto Correct string | undefinedstring | undefined - Anchor to autoFocusauto
Focusauto Focus boolean | undefinedboolean | undefined - Anchor to autoSaveauto
Saveauto Save string | undefinedstring | undefined - Anchor to childrenchildrenchildrenReactNode | undefinedReactNode | undefined
- Anchor to classNameclass
Nameclass Name string | undefinedstring | undefined - Anchor to colorcolorcolorstring | undefinedstring | undefined
- Anchor to contentcontentcontentstring | undefinedstring | undefined
- Anchor to contentEditablecontent
Editablecontent Editable Booleanish | "inherit" | "plaintext-only" | undefinedBooleanish | "inherit" | "plaintext-only" | undefined - string | undefinedstring | undefined
- Anchor to dangerouslySetInnerHTMLdangerously
Set Inner HTMLdangerously Set Inner HTML { // 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 defaultCheckeddefault
Checkeddefault Checked boolean | undefinedboolean | undefined - Anchor to defaultValuedefault
Valuedefault Value string | 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 enterKeyHintenter
Key Hintenter Key Hint "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 inputModeinput
Modeinput Mode "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 itemIDitem
IDitem ID string | undefinedstring | undefined - Anchor to itemPropitem
Propitem Prop string | undefinedstring | undefined - Anchor to itemRefitem
Refitem Ref string | undefinedstring | undefined - Anchor to itemScopeitem
Scopeitem Scope boolean | undefinedboolean | undefined - Anchor to itemTypeitem
Typeitem Type string | undefinedstring | undefined - Anchor to langlanglangstring | undefinedstring | undefined
- Anchor to mediaOptionsmedia
Optionsmedia Options MediaOptionsMediaOptions The options for the
Image,Video,, orcomponents.- Anchor to noncenoncenoncestring | undefinedstring | undefined
- Anchor to onAborton
Aborton Abort ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onAbortCaptureon
Abort Captureon Abort Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onAnimationEndon
Animation Endon Animation End AnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined - Anchor to onAnimationEndCaptureon
Animation End Captureon Animation End Capture AnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined - Anchor to onAnimationIterationon
Animation Iterationon Animation Iteration AnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined - Anchor to onAnimationIterationCaptureon
Animation Iteration Captureon Animation Iteration Capture AnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined - Anchor to onAnimationStarton
Animation Starton Animation Start AnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined - Anchor to onAnimationStartCaptureon
Animation Start Captureon Animation Start Capture AnimationEventHandler<T> | undefinedAnimationEventHandler<T> | undefined - Anchor to onAuxClickon
Aux Clickon Aux Click MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onAuxClickCaptureon
Aux Click Captureon Aux Click Capture MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onBeforeInputon
Before Inputon Before Input InputEventHandler<T> | undefinedInputEventHandler<T> | undefined - Anchor to onBeforeInputCaptureon
Before Input Captureon Before Input Capture FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onBluron
Bluron Blur FocusEventHandler<T> | undefinedFocusEventHandler<T> | undefined - Anchor to onBlurCaptureon
Blur Captureon Blur Capture FocusEventHandler<T> | undefinedFocusEventHandler<T> | undefined - Anchor to onCanPlayon
Can Playon Can Play ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onCanPlayCaptureon
Can Play Captureon Can Play Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onCanPlayThroughon
Can Play Throughon Can Play Through ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onCanPlayThroughCaptureon
Can Play Through Captureon Can Play Through Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onChangeon
Changeon Change FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onChangeCaptureon
Change Captureon Change Capture FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onClickon
Clickon Click MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onClickCaptureon
Click Captureon Click Capture MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onCompositionEndon
Composition Endon Composition End CompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined - Anchor to onCompositionEndCaptureon
Composition End Captureon Composition End Capture CompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined - Anchor to onCompositionStarton
Composition Starton Composition Start CompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined - Anchor to onCompositionStartCaptureon
Composition Start Captureon Composition Start Capture CompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined - Anchor to onCompositionUpdateon
Composition Updateon Composition Update CompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined - Anchor to onCompositionUpdateCaptureon
Composition Update Captureon Composition Update Capture CompositionEventHandler<T> | undefinedCompositionEventHandler<T> | undefined - MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined
- Anchor to onCopyon
Copyon Copy ClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined - Anchor to onCopyCaptureon
Copy Captureon Copy Capture ClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined - Anchor to onCuton
Cuton Cut ClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined - Anchor to onCutCaptureon
Cut Captureon Cut Capture ClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined - Anchor to onDoubleClickon
Double Clickon Double Click MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onDoubleClickCaptureon
Double Click Captureon Double Click Capture MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onDragon
Dragon Drag DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragCaptureon
Drag Captureon Drag Capture DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragEndon
Drag Endon Drag End DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragEndCaptureon
Drag End Captureon Drag End Capture DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragEnteron
Drag Enteron Drag Enter DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragEnterCaptureon
Drag Enter Captureon Drag Enter Capture DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragExiton
Drag Exiton Drag Exit DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragExitCaptureon
Drag Exit Captureon Drag Exit Capture DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragLeaveon
Drag Leaveon Drag Leave DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragLeaveCaptureon
Drag Leave Captureon Drag Leave Capture DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragOveron
Drag Overon Drag Over DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragOverCaptureon
Drag Over Captureon Drag Over Capture DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragStarton
Drag Starton Drag Start DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDragStartCaptureon
Drag Start Captureon Drag Start Capture DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDropon
Dropon Drop DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDropCaptureon
Drop Captureon Drop Capture DragEventHandler<T> | undefinedDragEventHandler<T> | undefined - Anchor to onDurationChangeon
Duration Changeon Duration Change ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onDurationChangeCaptureon
Duration Change Captureon Duration Change Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onEmptiedon
Emptiedon Emptied ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onEmptiedCaptureon
Emptied Captureon Emptied Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onEncryptedon
Encryptedon Encrypted ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onEncryptedCaptureon
Encrypted Captureon Encrypted Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onEndedon
Endedon Ended ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onEndedCaptureon
Ended Captureon Ended Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onErroron
Erroron Error ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onErrorCaptureon
Error Captureon Error Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onFocuson
Focuson Focus FocusEventHandler<T> | undefinedFocusEventHandler<T> | undefined - Anchor to onFocusCaptureon
Focus Captureon Focus Capture FocusEventHandler<T> | undefinedFocusEventHandler<T> | undefined - Anchor to onGotPointerCaptureon
Got Pointer Captureon Got Pointer Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onGotPointerCaptureCaptureon
Got Pointer Capture Captureon Got Pointer Capture Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onInputon
Inputon Input FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onInputCaptureon
Input Captureon Input Capture FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onInvalidon
Invalidon Invalid FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onInvalidCaptureon
Invalid Captureon Invalid Capture FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onKeyDownon
Key Downon Key Down KeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefined - Anchor to onKeyDownCaptureon
Key Down Captureon Key Down Capture KeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefined - Anchor to onKeyUpon
Key Upon Key Up KeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefined - Anchor to onKeyUpCaptureon
Key Up Captureon Key Up Capture KeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefined - Anchor to onLoadon
Loadon Load ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onLoadCaptureon
Load Captureon Load Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onLoadedDataon
Loaded Dataon Loaded Data ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onLoadedDataCaptureon
Loaded Data Captureon Loaded Data Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onLoadedMetadataon
Loaded Metadataon Loaded Metadata ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onLoadedMetadataCaptureon
Loaded Metadata Captureon Loaded Metadata Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onLoadStarton
Load Starton Load Start ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onLoadStartCaptureon
Load Start Captureon Load Start Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onLostPointerCaptureon
Lost Pointer Captureon Lost Pointer Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onLostPointerCaptureCaptureon
Lost Pointer Capture Captureon Lost Pointer Capture Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onMouseDownon
Mouse Downon Mouse Down MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseDownCaptureon
Mouse Down Captureon Mouse Down Capture MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseEnteron
Mouse Enteron Mouse Enter MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseLeaveon
Mouse Leaveon Mouse Leave MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseMoveon
Mouse Moveon Mouse Move MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseMoveCaptureon
Mouse Move Captureon Mouse Move Capture MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseOuton
Mouse Outon Mouse Out MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseOutCaptureon
Mouse Out Captureon Mouse Out Capture MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseOveron
Mouse Overon Mouse Over MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseOverCaptureon
Mouse Over Captureon Mouse Over Capture MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseUpon
Mouse Upon Mouse Up MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onMouseUpCaptureon
Mouse Up Captureon Mouse Up Capture MouseEventHandler<T> | undefinedMouseEventHandler<T> | undefined - Anchor to onPasteon
Pasteon Paste ClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined - Anchor to onPasteCaptureon
Paste Captureon Paste Capture ClipboardEventHandler<T> | undefinedClipboardEventHandler<T> | undefined - Anchor to onPauseon
Pauseon Pause ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onPauseCaptureon
Pause Captureon Pause Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onPlayon
Playon Play ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onPlayCaptureon
Play Captureon Play Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onPlayingon
Playingon Playing ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onPlayingCaptureon
Playing Captureon Playing Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onPointerCancelon
Pointer Cancelon Pointer Cancel PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerCancelCaptureon
Pointer Cancel Captureon Pointer Cancel Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerDownon
Pointer Downon Pointer Down PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerDownCaptureon
Pointer Down Captureon Pointer Down Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerEnteron
Pointer Enteron Pointer Enter PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerLeaveon
Pointer Leaveon Pointer Leave PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerMoveon
Pointer Moveon Pointer Move PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerMoveCaptureon
Pointer Move Captureon Pointer Move Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerOuton
Pointer Outon Pointer Out PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerOutCaptureon
Pointer Out Captureon Pointer Out Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerOveron
Pointer Overon Pointer Over PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerOverCaptureon
Pointer Over Captureon Pointer Over Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerUpon
Pointer Upon Pointer Up PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onPointerUpCaptureon
Pointer Up Captureon Pointer Up Capture PointerEventHandler<T> | undefinedPointerEventHandler<T> | undefined - Anchor to onProgresson
Progresson Progress ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onProgressCaptureon
Progress Captureon Progress Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onRateChangeon
Rate Changeon Rate Change ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onRateChangeCaptureon
Rate Change Captureon Rate Change Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onReseton
Reseton Reset FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onResetCaptureon
Reset Captureon Reset Capture FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onScrollon
Scrollon Scroll UIEventHandler<T> | undefinedUIEventHandler<T> | undefined - Anchor to onScrollCaptureon
Scroll Captureon Scroll Capture UIEventHandler<T> | undefinedUIEventHandler<T> | undefined - Anchor to onSeekedon
Seekedon Seeked ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onSeekedCaptureon
Seeked Captureon Seeked Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onSeekingon
Seekingon Seeking ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onSeekingCaptureon
Seeking Captureon Seeking Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onSelecton
Selecton Select ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onSelectCaptureon
Select Captureon Select Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onStalledon
Stalledon Stalled ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onStalledCaptureon
Stalled Captureon Stalled Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onSubmiton
Submiton Submit FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onSubmitCaptureon
Submit Captureon Submit Capture FormEventHandler<T> | undefinedFormEventHandler<T> | undefined - Anchor to onSuspendon
Suspendon Suspend ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onSuspendCaptureon
Suspend Captureon Suspend Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onTimeUpdateon
Time Updateon Time Update ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onTimeUpdateCaptureon
Time Update Captureon Time Update Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onTouchCancelon
Touch Cancelon Touch Cancel TouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined - Anchor to onTouchCancelCaptureon
Touch Cancel Captureon Touch Cancel Capture TouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined - Anchor to onTouchEndon
Touch Endon Touch End TouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined - Anchor to onTouchEndCaptureon
Touch End Captureon Touch End Capture TouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined - Anchor to onTouchMoveon
Touch Moveon Touch Move TouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined - Anchor to onTouchMoveCaptureon
Touch Move Captureon Touch Move Capture TouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined - Anchor to onTouchStarton
Touch Starton Touch Start TouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined - Anchor to onTouchStartCaptureon
Touch Start Captureon Touch Start Capture TouchEventHandler<T> | undefinedTouchEventHandler<T> | undefined - Anchor to onTransitionEndon
Transition Endon Transition End TransitionEventHandler<T> | undefinedTransitionEventHandler<T> | undefined - Anchor to onTransitionEndCaptureon
Transition End Captureon Transition End Capture TransitionEventHandler<T> | undefinedTransitionEventHandler<T> | undefined - Anchor to onVolumeChangeon
Volume Changeon Volume Change ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onVolumeChangeCaptureon
Volume Change Captureon Volume Change Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onWaitingon
Waitingon Waiting ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onWaitingCaptureon
Waiting Captureon Waiting Capture ReactEventHandler<T> | undefinedReactEventHandler<T> | undefined - Anchor to onWheelon
Wheelon Wheel WheelEventHandler<T> | undefinedWheelEventHandler<T> | undefined - Anchor to onWheelCaptureon
Wheel Captureon Wheel Capture WheelEventHandler<T> | undefinedWheelEventHandler<T> | undefined - Anchor to partpartpartstring | undefinedstring | undefined
- Anchor to prefixprefixprefixstring | undefinedstring | undefined
- Anchor to propertypropertypropertystring | undefinedstring | undefined
- Anchor to radioGroupradio
Groupradio Group string | 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 spellCheckspell
Checkspell Check Booleanish | 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 suppressContentEditableWarningsuppress
Content Editable Warningsuppress Content Editable Warning boolean | undefinedboolean | undefined - Anchor to suppressHydrationWarningsuppress
Hydration Warningsuppress Hydration Warning boolean | undefinedboolean | undefined - Anchor to tabIndextab
Indextab Index number | 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 onKeyPresson
Key Presson Key Press KeyboardEventHandler<T> | undefinedKeyboardEventHandler<T> | undefineddeprecateddeprecated - Deprecated
Use
orinsteadDeprecated:Use
orinstead - Anchor to onKeyPressCaptureon
Key Press Captureon Key Press Capture KeyboardEventHandler<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