LocalImageProps Type — astro Architecture
Architecture documentation for the LocalImageProps type/interface in types.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 6ccbefb1_5654_c98c_93b9_d0587053fa54["LocalImageProps"] a061abff_b26a_1eda_52cf_ff7a2af40052["types.ts"] 6ccbefb1_5654_c98c_93b9_d0587053fa54 -->|defined in| a061abff_b26a_1eda_52cf_ff7a2af40052 style 6ccbefb1_5654_c98c_93b9_d0587053fa54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/assets/types.ts lines 238–252
export type LocalImageProps<T> = ImageSharedProps<T> & {
/**
* A reference to a local image imported through an ESM import.
*
* **Example**:
* ```js
* import myImage from "../assets/my_image.png";
* ```
* And then refer to the image, like so:
* ```astro
* <Image src={myImage} alt="..."></Image>
* ```
*/
src: ImageMetadata | Promise<{ default: ImageMetadata }>;
};
Defined In
Source
Frequently Asked Questions
What is the LocalImageProps type?
LocalImageProps is a type/interface in the astro codebase, defined in packages/astro/src/assets/types.ts.
Where is LocalImageProps defined?
LocalImageProps is defined in packages/astro/src/assets/types.ts at line 238.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free