RayCraftDocs
v1.0.3 raycraft.dev
On this page

Overlay

Free

Dims the page (or, with Absolute, its positioned parent) and can show content such as a spinner. DismissOnClick closes it on a click.

Example

Overlay control

Parameters

ParameterTypeDescription
AbsoluteboolCovers the positioned parent instead of the whole window.
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
DismissOnClickboolCloses the overlay when its background is clicked.
StylestringInline style added to the root element.
VisibleboolWhether the overlay is shown. Use with @bind-Visible.

Events

EventTypeDescription
VisibleChangedEventCallback<bool>Raised when a click closes the overlay.

Package

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