TextBreadcrumbs

Description

The TextBreadcrumbs component is used as a navigational container that aggregates multiple TextBreadcrumb components. It displays a series of navigational links (breadcrumbs) that help users understand their current location within a hierarchical structure. Use this component when you want to provide users with one-click access to higher levels in your app's navigation hierarchy.

Usage

Instantiate TextBreadcrumbs using the static helper method from Tesserae.UI. Chain the Items() method to add individual TextBreadcrumb elements. The component supports method chaining and fluent interface conventions.

API reference

class

TextBreadcrumb

public class TextBreadcrumb : ComponentBase<TextBreadcrumb, HTMLSpanElement>

Represents an item in a TextBreadcrumbs component.

Namespace
Tesserae
Inheritance
ComponentBase<TextBreadcrumb, HTMLSpanElement> → TextBreadcrumb

Constructors

NameDescription
TextBreadcrumbInitializes a new instance of the TextBreadcrumb class.
Constructor
TextBreadcrumb
public TextBreadcrumb(string text)

Initializes a new instance of the TextBreadcrumb class.

Parameters

text
The breadcrumb text.

Methods

NameDescription
RenderRenders the component.
Method
TextBreadcrumb.Render
public override HTMLElement Render()

Renders the component.

Returns

The rendered HTML element.

class

TextBreadcrumbs

public class TextBreadcrumbs : IComponent, IContainer<TextBreadcrumbs, TextBreadcrumb>, ITextFormating, IHasForegroundColor

A breadcrumb component that displays a path as a sequence of text links.

Namespace
Tesserae
Implements
IComponent, IContainer<TextBreadcrumbs, TextBreadcrumb>, ITextFormating, IHasForegroundColor

Constructors

NameDescription
TextBreadcrumbsInitializes a new instance of the TextBreadcrumbs class.
Constructor
TextBreadcrumbs
public TextBreadcrumbs()

Initializes a new instance of the TextBreadcrumbs class.

Properties

NameDescription
SizeGets or sets the text size.
WeightGets or sets the text weight.
TextAlignGets or sets the text alignment.
ForegroundGets or sets the foreground color.
Property
TextBreadcrumbs.Size
public virtual TextSize Size { get ; set ; }

Gets or sets the text size.

Property
TextBreadcrumbs.Weight
public virtual TextWeight Weight { get ; set ; }

Gets or sets the text weight.

Property
TextBreadcrumbs.TextAlign
public TextAlign TextAlign { get ; set ; }

Gets or sets the text alignment.

Property
TextBreadcrumbs.Foreground
public string Foreground { get ; set ; }

Gets or sets the foreground color.

Methods

NameDescription
ClearClears all breadcrumbs.
ReplaceReplaces a breadcrumb.
AddAdds a breadcrumb.
ItemsAdds multiple breadcrumbs.
RenderRenders the component.
Method
TextBreadcrumbs.Clear
public void Clear()

Clears all breadcrumbs.

Method
TextBreadcrumbs.Replace
public void Replace(TextBreadcrumb newComponent, TextBreadcrumb oldComponent)

Replaces a breadcrumb.

Parameters

newComponent
The new breadcrumb.
oldComponent
The old breadcrumb.
Method
TextBreadcrumbs.Add
public void Add(TextBreadcrumb component)

Adds a breadcrumb.

Parameters

component
The breadcrumb to add.
Method
TextBreadcrumbs.Items
public TextBreadcrumbs Items(params TextBreadcrumb[] children)

Adds multiple breadcrumbs.

Parameters

children
The breadcrumbs to add.

Returns

The current instance.

Method
TextBreadcrumbs.Render
public HTMLElement Render()

Renders the component.

Returns

The rendered HTML element.

Samples

Basic Breadcrumbs Usage

This sample demonstrates how to create a TextBreadcrumbs container with a series of TextBreadcrumbs items. Each TextBreadcrumb fires an event on click that can be used to update UI or perform custom logic.

See also

© 2026 Curiosity. All rights reserved.