Informational Box

Informational box component serves to display important information or content within a user interface. It is typically used to highlight key messages, announcements, alerts, or explanations that require users' attention.

Styles

Informational boxes support four styles to convey different levels of importance.

Info

Scheduled maintenance is planned for tonight. Some services may be temporarily unavailable.

Info-Moderate

This is a moderate informational message for general guidance without high urgency.

Warning

Error

razor
<FodInformationalBox Color="InformationalBoxColor.Info">Info message</FodInformationalBox>
<FodInformationalBox Color="InformationalBoxColor.Neutral">Info-Moderate message</FodInformationalBox>
<FodInformationalBox Color="InformationalBoxColor.Warning">Warning message</FodInformationalBox>
<FodInformationalBox Color="InformationalBoxColor.Error">Error message</FodInformationalBox>

Types

Informational boxes come in two visual types: Subtle (default, neutral gray background) and Strong (color-tinted background).

Subtle (Default)

Subtle type uses a neutral gray background regardless of color.

Strong

Strong type uses a color-tinted background based on the selected color.

All Colors in Strong Type

Neutral strong
Info strong
razor
<FodInformationalBox Color="InformationalBoxColor.Info" Type="InformationalBoxType.Subtle">
    Subtle type — neutral gray background (default).
</FodInformationalBox>

<FodInformationalBox Color="InformationalBoxColor.Info" Type="InformationalBoxType.Strong">
    Strong type — color-tinted background.
</FodInformationalBox>

Variations

Different configurations of the informational box component.

w/ icon

Uses the default icon for the selected color.

icon-none

This informational box has no icon displayed.

w/ heading

Important Notice
This informational box includes a title to provide additional context.

w/ close

Click the close button to dismiss this informational box.

w/ link

For more details about the new policy changes, review our updated documentation.

w/ action

For enhanced security, always use two-factor authentication when accessing your digital identity or personal records online.
razor
@* w/ icon (default) *@
<FodInformationalBox Color="InformationalBoxColor.Info">
    Default icon is shown automatically based on color.
</FodInformationalBox>

@* icon-none *@
<FodInformationalBox Color="InformationalBoxColor.Info" HideIcon="true">
    This box has no icon displayed.
</FodInformationalBox>

@* w/ heading *@
<FodInformationalBox Color="InformationalBoxColor.Info" Title="Important Notice">
    This informational box includes a title.
</FodInformationalBox>

@* w/ close *@
<FodInformationalBox Color="InformationalBoxColor.Info" Dismissible="true" OnDismiss="HandleDismiss">
    Click the close button to dismiss this box.
</FodInformationalBox>

@* w/ link *@
<FodInformationalBox Color="InformationalBoxColor.Info">
    <ChildContent>Review our updated documentation.</ChildContent>
    <Action>
        <a href="#">Learn more</a>
    </Action>
</FodInformationalBox>

@* w/ action *@
<FodInformationalBox Color="InformationalBoxColor.Info">
    <ChildContent>
        For enhanced security, always use two-factor authentication.
    </ChildContent>
    <Action>
        <FodButton Type="FodColor.Primary" Size="Size.Small"
                   Variant="ButtonVariant.Filled">
            Confirm your identity
        </FodButton>
        <FodButton Type="FodColor.Primary" Size="Size.Small"
                   Variant="ButtonVariant.Text">
            Learn more
        </FodButton>
    </Action>
</FodInformationalBox>

Accessibility

ARIA roles are automatically assigned based on color. Neutral and Info use role=status with aria-live=polite. Warning and Error use role=alert with aria-live=assertive.

Info (role=status, aria-live=polite)

Informational boxes use polite announcements by default.

Error (role=alert, aria-live=assertive)

Custom Role Override

razor
@* Default roles based on color *@
<FodInformationalBox Color="InformationalBoxColor.Info">role=status, aria-live=polite</FodInformationalBox>
<FodInformationalBox Color="InformationalBoxColor.Error">role=alert, aria-live=assertive</FodInformationalBox>

@* Override default role *@
<FodInformationalBox Color="InformationalBoxColor.Info" Role="alert">
    Custom role override
</FodInformationalBox>

API Reference

Complete list of FodInformationalBox component parameters.

No properties defined.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.