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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
295 B
Markdown
Raw Normal View History

---
"astro": minor
---
Adds a new `ComponentProps` type export from `astro/types` to get the props type of an Astro component.
```astro
---
import type { ComponentProps } from 'astro/types';
import { Button } from "./Button.astro";
type myButtonProps = ComponentProps<typeof Button>;
---
```