Skip to content

Commit

Permalink
feat: add blur option in next/image
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyLightQP committed Dec 3, 2024
1 parent f778ef1 commit 552cdec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Dialogs/ImageDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ const ImageDetailModal: React.FC<ImageDetailModalProps> = ({ modalController, im
<ModalOverlay />
<StyledModalContent>
<ModalBody>
<StyledImage src={image.url} alt={image.alt} width={1024} height={768} />
<StyledImage
src={image.url}
alt={image.alt}
width={1024}
height={768}
placeholder="blur"
blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP0rAcAARcAyjleRTkAAAAASUVORK5CYII="
/>
<ImageLabel>{image.alt}</ImageLabel>
</ModalBody>
</StyledModalContent>
Expand Down

0 comments on commit 552cdec

Please sign in to comment.