Table of Contents

Class BOBBanner

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll
[GenerateComponentInfo]
public class BOBBanner : BOBComponentBase, IHasSize
Inheritance
object
ComponentBase
BOBBanner
Implements
Inherited Members

Constructors

BOBBanner()

public BOBBanner()

Properties

Actions

Right-side action slot (typically a button or a link).

[Parameter]
public RenderFragment? Actions { get; set; }

Property Value

RenderFragment

ChildContent

Custom body content (overrides Message).

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

DismissText

Aria-label for the dismiss button.

[Parameter]
public string? DismissText { get; set; }

Property Value

string

Dismissible

When true, render an X button that hides the banner client-side.

[Parameter]
public bool Dismissible { get; set; }

Property Value

bool

Icon

Override the default severity icon.

[Parameter]
public IconKey? Icon { get; set; }

Property Value

IconKey?

Message

Text body. Ignored when ChildContent is set.

[Parameter]
public string? Message { get; set; }

Property Value

string

OnDismissed

Raised after the user dismisses the banner.

[Parameter]
public EventCallback OnDismissed { get; set; }

Property Value

EventCallback

Severity

Severity tone — drives icon and palette accent.

[Parameter]
public BOBBannerSeverity Severity { get; set; }

Property Value

BOBBannerSeverity

ShowIcon

When true (default), render the severity icon on the left.

[Parameter]
public bool ShowIcon { get; set; }

Property Value

bool

Size

Visual size of the banner (drives icon size + padding).

[Parameter]
public BOBSize Size { get; set; }

Property Value

BOBSize

Title

Bold prefix rendered before the message.

[Parameter]
public string? Title { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Reset()

Programmatically restore a dismissed banner.

public void Reset()