Skip to content
CHOICE · FREE

Segmented

Segmented is part of RayCraft Free.

Example

<Segmented TValue="string" Label="View" Items="_views" @bind-Value="_view" />
<Segmented TValue="string" Label="Density" Items="_densities" @bind-Value="_density" Size="Size.Small" Block="true" />
<span>@_view; @_density</span>

@code {
    private readonly string[] _views = ["Day", "Week", "Month", "Year"];
    private readonly string[] _densities = ["Comfortable", "Compact"];
    private string _view = "Week";
    private string _density = "Comfortable";
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Included in RayCraft Free. Working examples are in the GitHub repository (MIT); it holds example and demo code, not the library code.

All controls ยท Documentation