RayCraftDocs
v1.0.3 raycraft.dev
On this page

Image

Free

Image with required alternative text, fit modes, optional border and caption. Lazy loading is on by default.

Example

Image control

Parameters

ParameterTypeDescription
AltstringAlternative text that describes the image (required).
BorderedboolDraws a thin border.
CaptionstringText shown under the image or above the table.
ClassstringExtra CSS classes added to the root element.
FitImageFitHow the image fills its box: Fill, Contain, Cover (default) or None.
HeightstringMaximum height of the grid body, for example 24rem (default 28rem with VirtualScroll).
LazyboolLoads the image only when it is near the viewport (default true).
SrcstringImage address.
StylestringInline style added to the root element.
WidthstringSkeleton: any CSS length. Charts: drawing width in SVG units (the chart still scales to its container).

Package

Image is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.