Tesserae

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 component.

Constructors

Constructor
TextBreadcrumb
public TextBreadcrumb(string text)

Initializes a new instance of the class.

Parameters

text
The breadcrumb text.

Methods

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.

Constructors

Constructor
TextBreadcrumbs
public TextBreadcrumbs()

Initializes a new instance of the class.

Properties

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

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 Tesserae. All rights reserved.