Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh_images/src/components/FreshImage.tsx>FreshImageProps

Fresh plugin for manipulating images on-the-fly.
Latest
interface FreshImageProps
implements [JSX.HTMLAttributes]<HTMLImageElement>
import { type FreshImageProps } from "https://deno.land/x/fresh_images@v0.3.0/src/components/FreshImage.tsx";

An image component that applies transformation parameters.

Properties

src: string

The path to the image.

alt: string

Required alt text for the image.

optional
transformations: Record<string, string> | Array<Record<string, string>>

Construct a URL with query parameters for the image.

optional
preload: string

Whether to preload the image. Enabled when a truthy string is provided.
Disabled when undefined, "off", or "false".

optional
onLoad: () => void

Callback when the image loads.

optional
placeholder: string