RayCraftDocs
v1.0.3 raycraft.dev
On this page

Alert

Free

Inline message colored by severity, with a matching icon. Set Dismissible to show a close button; use bind-Visible or OnDismiss to react when it is closed.

Example

Alert control

Parameters

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
DismissibleboolShows a close button.
SeveritySeveritySemantic color: Neutral, Info, Success, Warning or Error.
ShowIconboolShows the icon that matches the severity (default true).
StylestringInline style added to the root element.
VisibleboolWhether the alert is shown. Use with @bind-Visible.

Events

EventTypeDescription
OnDismissEventCallbackRaised when the close button is clicked.
VisibleChangedEventCallback<bool>Raised when the alert is dismissed.

Package

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