diff --git a/dotcom-rendering/src/components/InteractiveAtom.tsx b/dotcom-rendering/src/components/InteractiveAtom.tsx index 6dc0069f206..65d8c280435 100644 --- a/dotcom-rendering/src/components/InteractiveAtom.tsx +++ b/dotcom-rendering/src/components/InteractiveAtom.tsx @@ -34,6 +34,7 @@ type InteractiveAtomType = { elementCss?: string; isMainMedia?: boolean; title: string; + customData?: string; }; export const InteractiveAtom = ({ @@ -43,6 +44,7 @@ export const InteractiveAtom = ({ elementCss, isMainMedia, title, + customData, }: InteractiveAtomType) => { const { renderingTarget } = useConfig(); @@ -51,6 +53,7 @@ export const InteractiveAtom = ({ css={[containerStyles, !!isMainMedia && fullHeightStyles]} data-atom-id={id} data-atom-type="interactive" + {...(customData ? { 'data-atom-custom-data': customData } : {})} > (
{!!elementCss && (