Table of Contents

Struct BreadcrumbItem

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.Core.dll

Single breadcrumb entry consumed by BOBBreadcrumbs (BlazOrbit.Components.Navigation).

public readonly struct BreadcrumbItem

Constructors

BreadcrumbItem(string, string?, IconKey?)

Single breadcrumb entry consumed by BOBBreadcrumbs (BlazOrbit.Components.Navigation).

public BreadcrumbItem(string Text, string? Href = null, IconKey? Icon = null)

Parameters

Text string

Display text for the entry.

Href string

Navigation target. Pass null for the current page (rendered as non-link text and announced via aria-current="page").

Icon IconKey?

Optional leading icon. Useful for the root entry (e.g. a home glyph).

Properties

Href

Navigation target. Pass null for the current page (rendered as non-link text and announced via aria-current="page").

public string? Href { get; init; }

Property Value

string

Icon

Optional leading icon. Useful for the root entry (e.g. a home glyph).

public IconKey? Icon { get; init; }

Property Value

IconKey?

IsCurrent

True when this entry has no Href and is therefore rendered as the current page.

public bool IsCurrent { get; }

Property Value

bool

Text

Display text for the entry.

public string Text { get; init; }

Property Value

string