* fix: add support for components defined in frontmatter * chore: add changeset * test: update test to match example use case
279 B
279 B
astro |
---|
patch |
Add support for components defined in Frontmatter. Previously, the following code would throw an error. Now it is officially supported!
---
const { level = 1 } = Astro.props;
const Element = `h${level}`;
---
<Element>Hello world!</Element>