Skip to content

Image

The Image component is used to display images. It can be used to display static images and have a caption .

Sandstone plateau, Hisma Desert - NEOM, Saudi Arabia
---
import { Image } from "@gemini-ui-astro/components";
---
<Image
class="neom-1"
src="/neom-400x300.webp"
alt="Sandstone plateau, Hisma Desert - NEOM, Saudi Arabia"
width="400"
dynamicGlow
/>

Usage

Caption

To add a caption to the image, toggle the caption prop. Then add a caption as a child of the Image component.

Sandstone plateau, Hisma Desert - NEOM, Saudi Arabia
Figure 2: The vibrant waters of NEOM, are home to some of the most picturesque and pristine islands in the Red Sea | Islands of NEOM - NEOM, Saudi Arabia.
---
import { Image } from "@gemini-ui-astro/components";
---
<Image
class="neom-1"
src="/neom2-600x400.webp"
alt="Sandstone plateau, Hisma Desert - NEOM, Saudi Arabia"
width="600"
caption
dynamicGlow
style="max-width: 85vw"
>
Figure 2: The vibrant waters of NEOM, are home to some of the most picturesque
and pristine islands in the Red Sea | Islands of NEOM - NEOM, Saudi Arabia.
</Image>

Props

NameTypeDefaultDescription
dynamicGlowbooleanfalseA Gemini UI unique effect
classstring-Override or extend the styles applied to the component.