Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Image

A lazy image that keeps its space.

IzzyBlazor.Image in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (8)

Srcstring required

The image URL.

Altstring required

What the image shows, for screen readers and when it fails to load. Use "" for a purely decorative image.

The image's own width in pixels, so the browser reserves its space before it loads.

The image's own height in pixels. See IntrinsicWidth.

Ratiodouble?

A shape to show it in, width over height, such as 16 / 9.0 or 1; the image fills it per Fit.

FitImageFit = ImageFit.Cover

How it fills a Ratio of a different shape. Defaults to ImageFit.Cover.

Lazybool = true

Loads only when the image nears the screen. Defaults to true; set false for the first image on a page.

Captionstring?

A caption under the image; wraps it in a figure.

Events (0)

No events.

Types (1)

ImageFit

enum

How an Image fills a box with a different shape (Ratio).

ImageFit values
ValueDescription
Cover

Fills the box, cropping the edges (the default).

Contain

Shows the whole image, leaving bands.