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