Examples
Pass the error text as Message. Class defaults to mb-4.
Could not reach the billing service (HTTP 503).
website/Examples/Feedback/ErrorAlertBasicExample.razor
Source
Set Message to null and the alert disappears without an @if.
Message is null, so nothing is rendered.
website/Examples/Feedback/ErrorAlertToggleExample.razor
Source
Catch the exception and show its message.
website/Examples/Feedback/ErrorAlertSaveExample.razor
Source
Playground
The payment provider did not respond. Try again in a minute.
<ErrorAlert
Message="The payment provider did not respond. Try again in a minute." />API
<ErrorAlert>
DaisyBlazor.FeedbackFilled error Alert; renders nothing when Message is null or blank.
Parameters
- Message string= null
Error text. When null, empty or whitespace, the alert is not rendered.
- Class string= null
Extra CSS classes applied to the alert. No default margin: space it from the layout (gap, Stack).
- Style string= null
Inline CSS style applied to the alert.