mirror of
https://github.com/withastro/astro.git
synced 2025-02-10 22:38:53 -05:00
* 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>
14 lines
295 B
Markdown
14 lines
295 B
Markdown
---
|
|
"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>;
|
|
---
|
|
```
|