---
title: "Discussion on \"Polymorphic as prop in Astro\" | Hashnode"
description: "Discussion on \"Polymorphic as prop in Astro\". Astro has dynamic tags — a way to accept an element or component as a prop. And they're totally different than React's polymorphic as prop pattern."
url: "https://hashnode.com/posts/polymorphic-as-prop-in-astro/64f0b0c70e95f19d3318fd38"
---

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

Discussion

# [Polymorphic as prop in Astro](https://chantastic.hashnode.dev/polymorphic-as-prop-in-astro?utm_source=hashnode&utm_medium=feed)

Astro has dynamic tags — a way to accept an element or component as a prop. And they're totally different than React's polymorphic as prop pattern.

Aug 31, 2023 · 2 min read · chantastic.hashnode.dev  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#astro](https://hashnode.com/tag/astro)
-   [#html5](https://hashnode.com/tag/html5)
-   [#polymorphism](https://hashnode.com/tag/polymorphism)

## Written by

[chantastic](https://hashnode.com/@chantastic)

@chantastic

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

mediocre developer

software explorer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
