Skip to content
X GitHub

Image

The image component is a wrapper around the Astro Image component, with some additional features.

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

To install the image component, run the following command:

Terminal window
pnpm dlx shadcn@latest add @fulldev-ui/image
import { Image } from "@/components/ui/image"
<Image src="image.webp" alt="Description" />