Lumeo

Segmented

An iOS-style segmented control for switching between options.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Segmented />

API Reference

Segmented

Property Type Default Description
Valuestring?nullCurrently selected value.
OptionsList<SegmentedOption>?nullList of segment options.
BlockboolfalseStretch to fill available width.
ValueChangedEventCallback<string>Callback for two-way binding when the selected value changes.

SegmentedOption

Property Type Default Description
Labelstring""Display text.
Valuestring""Selection value.
IconRenderFragment?nullOptional icon before the label.
DisabledboolfalseDisable this option.