astro/.changeset/light-apricots-sort.md
Nate Moore d81b6d9ebc
Add function-based slot support to Astro.slots.render() (#2954)
* feat(slots): add function-based slot support to Astro.slots.render()

* test(slots): add render tests
2022-03-31 13:11:26 -05:00

200 B

astro
patch

Improve Astro.slots API to support passing arguments to function-based slots.

This allows for more ergonomic utility components that accept a callback function as a child.