Skip to content

Commit ff6402d

Browse files
committed
Add data-nimg attribute to image component
1 parent 1969124 commit ff6402d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/next/client/image.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ export default function Image({
607607
loader,
608608
})}
609609
decoding="async"
610+
data-nimg
610611
style={imgStyle}
611612
className={className}
612613
/>
@@ -616,6 +617,7 @@ export default function Image({
616617
{...rest}
617618
{...imgAttributes}
618619
decoding="async"
620+
data-nimg
619621
className={className}
620622
ref={(img) => {
621623
setRef(img)

0 commit comments

Comments
 (0)