# Is this anything? Questions from Kapa AI -- actionable for docs? How do I import an Astro component's Props type? In my components, I always export the `Props` type. But now I want to get the `Props` type of `<Code />` from `astro:components`. That component doesn't export its `Props` type. Is there any way I can access it? Yes, you can access the Props type of another component even if it doesn't export it directly. Astro provides a utility called ComponentProps for this purpose. You can use it to reference the Props type of another component. Here's how you can do it: ``` import type { ComponentProps } from 'astro/types'; import Code from 'astro:components/Code.astro'; type CodeProps = ComponentProps<typeof Code>; ``` In the above code, ComponentProps is imported from astro/types and used to reference the Props type of the <Code /> component. This feature was added in astro@4.3.0.