Skip to main content

LgBigMessage

LgBigMessage displays a centered information message with an icon, title, description, and optional additional content. It is suitable for full-page states such as a resource not found or access denied.

<LgBigMessage IconName="@IconNames.Error"
Title="#PageNotFoundTitle"
Description="#PageNotFoundDescription" />
  • Namespace: Lagoon.UI.Components
  • Inherits from: LgComponentBase
  • NuGet package: Lagoon.UI

Usage​

Demo​

Try this component in the Lagoon showcase.

Full-page message​

Use Title and Description to provide a short, translated explanation to the user. The icon is provided by IconName.

AccessDeniedPage.razor
<LgBigMessage IconName="@IconNames.Error"
Title="#AccessDeniedTitle"
Description="#AccessDeniedDescription" />

Message with action​

Add content between the tags to offer a recovery or navigation action.

SearchUnavailablePage.razor
<LgBigMessage IconName="@IconNames.Warning"
Title="#SearchUnavailableTitle"
Description="#SearchUnavailableDescription">
<LgButton Text="#RetrySearch" OnClick="RetrySearchAsync" />
</LgBigMessage>
SearchUnavailablePage.razor.cs
public partial class SearchUnavailablePage : LgPage
{
// Retry the search after a temporary blocking state signaled by the message.
private Task RetrySearchAsync(ActionEventArgs args)
{
ShowInformation("#SearchRetryStarted");
return Task.CompletedTask;
}
}

Properties​

NameTypeDefaultDeclared inDescription
CssClassstringnullLgBigMessageAdditional CSS classes added to the message container.
IconNamestringnullLgBigMessageName of the icon displayed at the top of the message.
DescriptionstringnullLgBigMessageDescriptive text displayed below the title.
TitlestringnullLgBigMessageMain title of the message.
ChildContentRenderFragmentnullLgBigMessageCustom content rendered below the icon, title, and description.

Accessibility​

  • Use explicit translation keys for Title and Description so the message remains understandable in all application languages.
  • Choose an icon consistent with the context, without relying on it alone to convey the message's meaning.
  • If ChildContent contains a primary action, give it a clear label with Text="#...".
  • LgEmptyMessage — message for lists or empty areas.
  • Toasts — brief feedback triggered from code.