Skip to content
X 468

Image

The image component is a minimal wrapper around the Astro Image component.

Image placeholder
---
import image from "@/assets/image-placeholder.webp"
import { Image } from "@/components/ui/image"
---
<Image src={image} alt="Image placeholder" class="w-full max-w-md rounded-lg" />

To install the image component, run the following command:

Terminal window
npx shadcn@latest add @fulldev/image
import { Image } from "@/components/ui/image"
<Image src={image} alt="Description" />