skip to content
Alvin Lucillo

Images in Astro

/ 1 min read

💻 Tech

In Astro, you can embed an image in a markdown like so:

![Diagram description](./img/image_here.jpg)

The above above adds an alt text to the image and the image path. However, if you want to add an image outside the markdown, you can import <Image> from astro:content and use it like so:

			<Image
				src={src}
				alt={alt}
			/>