0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/.changeset/cuddly-moons-hang.md
Erika 58f9e393a1
Add ComponentProps util (#9839)
* chore: changeset

* Update .changeset/cuddly-moons-hang.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-31 13:56:44 +00:00

295 B

astro
minor

Adds a new ComponentProps type export from astro/types to get the props type of an Astro component.

---
import type { ComponentProps } from 'astro/types';
import { Button } from "./Button.astro";

type myButtonProps = ComponentProps<typeof Button>;
---