diff options
Diffstat (limited to '.changeset/two-carrots-smile.md')
-rw-r--r-- | .changeset/two-carrots-smile.md | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/.changeset/two-carrots-smile.md b/.changeset/two-carrots-smile.md deleted file mode 100644 index d5b046b0b..000000000 --- a/.changeset/two-carrots-smile.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'astro': minor ---- - -Added `Polymorphic` type helper to `astro/types` to easily create polymorphic components: - -```astro ---- -import { HTMLTag, Polymorphic } from 'astro/types'; - -type Props<Tag extends HTMLTag> = Polymorphic<{ as: Tag }>; - -const { as: Tag, ...props } = Astro.props; ---- - -<Tag {...props} /> -``` |