diff --git a/components/LazyImage.js b/components/LazyImage.js index 0fc0a7c4..4556bd0d 100644 --- a/components/LazyImage.js +++ b/components/LazyImage.js @@ -16,6 +16,7 @@ export default function LazyImage({ className, width, height, + title, onLoad, style }) { @@ -66,6 +67,10 @@ export default function LazyImage({ imgProps.id = id } + if (title) { + imgProps.title = title + } + if (width && width !== 'auto') { imgProps.width = width }