Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Lightbox

Since 0.1.0-alpha.24
Opens pictures full size in a viewer over the page.

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

Properties (10)

Labelstring requiredAdded in 0.1.0-alpha.24

What the pictures are, such as "Product photos": the viewer's accessible name. Required.

@bind-Indexint?Added in 0.1.0-alpha.24 @bind: Interactive only

The item open in the viewer, from 0; null when the viewer is closed. With @bind-Index it follows what a person opens, moves to and closes, on an interactive page.

Counterbool = falseAdded in 0.1.0-alpha.24

Shows the open item's place, such as "2 of 5".

Arrowsbool = trueAdded in 0.1.0-alpha.24

Shows the previous and next buttons. Defaults to true.

TransitionLightboxTransition = LightboxTransition.NoneAdded in 0.1.0-alpha.24

How one image gives way to the next: LightboxTransition.None, the default, shows it at once; LightboxTransition.Fade fades it in.

Loopbool = falseAdded in 0.1.0-alpha.24

Wraps from the last image to the first, and back.

CloseOnBackdropbool = trueAdded in 0.1.0-alpha.24

Closes the viewer on a click outside the image and its controls. Defaults to true.

HideControlsAfterTimeSpan = TimeSpan.FromMilliseconds(3000)Added in 0.1.0-alpha.24

How long without a pointer move or a key before the viewer's controls fade. Defaults to 3 seconds; TimeSpan.Zero keeps them.

ChildContentRenderFragment?Added in 0.1.0-alpha.24

The LightboxItems, laid out as you like.

Events (0)

No events.

Parts (1)

Components written inside Lightbox, documented here with it.

LightboxItem

One picture of a Lightbox: a link to the image, drawn as a small picture of it (or as its content). A click opens the image in the lightbox's viewer. It's a real link, so opening it in a new tab or copying its address works as for any link.

Srcstring requiredAdded in 0.1.0-alpha.24

The full-size image's URL: what the viewer shows, and where the link goes.

Altstring? requiredAdded in 0.1.0-alpha.24

What the image shows, for screen readers and when it fails to load, such as "The deal pipeline, five columns of cards". Required.

Captionstring?Added in 0.1.0-alpha.24

A caption under the image in the viewer.

Thumbnailstring? (computed)Added in 0.1.0-alpha.24

A smaller image for the link and the viewer's thumbnails. Defaults to Src.

DarkSrcstring?Added in 0.1.0-alpha.24

The image to show in its place where the color scheme is dark, such as a screenshot taken in dark mode.

DarkThumbnailstring? (computed)Added in 0.1.0-alpha.24

A smaller image for the dark scheme. Defaults to DarkSrc.

ChildContentRenderFragment?Added in 0.1.0-alpha.24

The link's content, in place of the small picture: a card, a button, any markup. Name what it opens in it, since the link takes its name from this content.

Types (2)

LightboxNav

enum

What a Lightbox shows beside the picture to move between its items.

LightboxNav values
ValueDescription
None

Nothing more than the previous and next buttons.

Dots

A dot for each item, under the picture.

Thumbnails

A small picture of each item, under the picture.

LightboxTransition

enum

How one image of a Lightbox gives way to the next.

LightboxTransition values
ValueDescription
None

The next image shows at once, with no animation (the default).

Fade

The next image fades in.

Connection lost

Rejoining the server…