CardPivot

Description

A pivot using cards

A CardPivot is a tabbed interface where the tabs are presented as connected cards with a shared border. It is useful for displaying selectable metrics that control the view below them.

Sample

API reference

class

CardPivot

public sealed class CardPivot : IComponent, ISpecialCaseStyling, IBindableComponent<string>

A pivot variant that styles each tab as a card, used for dashboard-style switching between rich panels.

Namespace
Tesserae
Implements
IComponent, ISpecialCaseStyling, IBindableComponent<string>

Constructors

NameDescription
CardPivotInitializes a new instance of this class.
Constructor
CardPivot
public CardPivot()

Initializes a new instance of this class.

Properties

NameDescription
StylingContainerGets the HTMLElement that should receive styling. Exposing the root as the styling container (via ISpecialCaseStyling) lets sizing helpers like .S() / .Grow() write directly onto the pivot instead of an extra wrapper when it is placed inside a Stack or Grid, matching Pivot and SegmentedPivot.
PropagateToStackItemParentGets whether styling should propagate to the stack item parent.
Property
CardPivot.StylingContainer
public HTMLElement StylingContainer { get; }

Gets the HTMLElement that should receive styling. Exposing the root as the styling container (via ISpecialCaseStyling) lets sizing helpers like .S() / .Grow() write directly onto the pivot instead of an extra wrapper when it is placed inside a Stack or Grid, matching Pivot and SegmentedPivot.

Property
CardPivot.PropagateToStackItemParent
public bool PropagateToStackItemParent

Gets whether styling should propagate to the stack item parent.

Methods

NameDescription
OnBeforeNavigateRegisters a callback invoked when the before navigate event fires.
OnNavigateRegisters a callback invoked when the navigate event fires.
SelectConfigures the component to select.
AsObservableReturns an observable that tracks the id of the currently-selected tab.
SetBoundValueProgrammatically selects a tab by id as part of a two-way binding.
RenderRenders the component's root HTML element.
Method
CardPivot.OnBeforeNavigate
public CardPivot OnBeforeNavigate(PivotEventHandler<PivotBeforeNavigateEvent> onBeforeNavigate)

Registers a callback invoked when the before navigate event fires.

Method
CardPivot.OnNavigate
public CardPivot OnNavigate(PivotEventHandler<PivotNavigateEvent> onNavigate)

Registers a callback invoked when the navigate event fires.

Method
CardPivot.Select
public CardPivot Select(string id, bool refresh = false)

Configures the component to select.

Method
CardPivot.AsObservable
public IObservable<string> AsObservable()

Returns an observable that tracks the id of the currently-selected tab.

Method
CardPivot.SetBoundValue
public void SetBoundValue(string value)

Programmatically selects a tab by id as part of a two-way binding.

Method
CardPivot.Render
public HTMLElement Render()

Renders the component's root HTML element.

See also

© 2026 Curiosity. All rights reserved.