Tesserae

IconToggle

Description

A group of icon buttons of which exactly one is selected at a time, like a segmented control. Each item carries a UIcons glyph, a tooltip and an arbitrary data payload, which is exposed through the typed Selected property.

Usage

API reference

class

IconToggle<T>

public class IconToggle<T> : IComponent

A group of icon buttons of which exactly one is selected at a time, like a segmented control.

Constructors

Constructor
IconToggle
public IconToggle(Item[] items)

Initializes a new instance of this class.

Methods

Method
IconToggle.Render
public HTMLElement Render()

Renders the component's root HTML element.

Method
IconToggle.Select
public void Select(T item)

Configures the component to select.

Method
IconToggle.AsObservable
public IObservable<T> AsObservable()

Returns the component's state as a(n) observable.

See also

Referenced by

© 2026 Tesserae. All rights reserved.