1,673 questions
on the view that define the alerts use an if with a component variable.
@code {
[Parameter]
public bool DisplayAlert { get; set; }
}
@if (DisplayAlert) {
<div class="alert alert-success fade-in" role="alert">
This is a success alert—check it out!
</div>
}