---
title: "Discussion on \"nextjs images - fill parent container while preserving original aspect ratio\" | Hashnode"
description: "Discussion on \"nextjs images - fill parent container while preserving original aspect ratio\". using typescript and styled components"
url: "https://hashnode.com/posts/nextjs-images-fill-parent-container-while-preserving-original-aspect-ratio/649b4a9f7f2fe860fa1c0c1e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [nextjs images - fill parent container while preserving original aspect ratio](https://codetiger.hashnode.dev/nextjs-images-fill-parent-container-while-preserving-original-aspect-ratio?utm_source=hashnode&utm_medium=feed)

using typescript and styled components

Jun 27, 2023 · 2 min read · codetiger.hashnode.dev  
Updated Jun 29, 2023  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#next-image](https://hashnode.com/tag/next-image)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#styled-components](https://hashnode.com/tag/styled-components)
-   [#nextimage](https://hashnode.com/tag/nextimage)

## Written by

[Mir N. Ali](https://hashnode.com/@codetiger)

@codetiger · Princeton, NJ

  
[View profile](https://hashnode.com/@codetiger)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
