mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
15 lines
295 B
Markdown
15 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>;
|
||
|
---
|
||
|
```
|