New to Telerik UI for Blazor? Download Free 30-day trial

SegmentedControl - Item Width Modes

Support Tickets

Width mode:
Language:
Showing: In Progress
  • Item-width-modes.razor
Loading the demo source code...please wait.
Style in ThemeBuilder
  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

Description

The LayoutMode parameter controls how segment items are sized within the SegmentedControl.

Compact (default): Each segment is sized based on its content (text, icon, and padding), which may result in segments with different widths.

Stretch: All segments stretch to fill the available horizontal space equally, regardless of their content length.

This demo shows both modes using a Support Tickets header filter with status options and dynamic counts. Use the configurator to switch between Compact and Stretch modes and see how the layout adapts.

This Blazor SegmentedControl Item Width Modes example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.