Component

BOBInputRangeSlider

Two-thumb slider bound to a single BOBNumericRange<T> value. EditContext-aware, granular FluentValidation via Range.Min and Range.Max, with keyboard, ticks, and orientation.

API reference ↗

Basic usage

20 – 80
RAZOR
<BOBInputRangeSlider TValue="int" @bind-Value="_basic" Label="Range" />

Price range

$50 – $250
RAZOR
<BOBInputRangeSlider TValue="decimal" @bind-Value="_price"
                     Label="Price filter"
                     Min="0m" Max="500m" Step="5m"
                     ValueLabelFormat="C0" />

Ticks

20 – 60
RAZOR
<BOBInputRangeSlider TValue="int" @bind-Value="_age" Label="Age" Min="0" Max="100" Step="5" ShowTicks="true" />

Vertical orientation

8 – 17
RAZOR
<div style="height: 240px;">
    <BOBInputRangeSlider TValue="int" @bind-Value="_vertical" Label="Working hours" Orientation="BOBSliderOrientation.Vertical" Min="0" Max="24" Step="1" />
</div>

Sizes

10 – 40
20 – 70
30 – 90
RAZOR
<BOBInputRangeSlider TValue="int" @bind-Value="_sizeS" Label="Small" Size="BOBSize.Small" />
<BOBInputRangeSlider TValue="int" @bind-Value="_sizeM" Label="Medium (Default)" Size="BOBSize.Medium" />
<BOBInputRangeSlider TValue="int" @bind-Value="_sizeL" Label="Large" Size="BOBSize.Large" />

Color & Background

25 – 75
RAZOR
<BOBInputRangeSlider TValue="int" @bind-Value="_colored" Label="Custom Color" Color="@PaletteColor.Secondary" BackgroundColor="@PaletteColor.SecondaryContrast" />

States

20 – 80
20 – 80
20 – 80
30 – 60
Validation message goes here.
RAZOR
<BOBInputRangeSlider TValue="int" @bind-Value="_required" Label="Required" Required="true" />
<BOBInputRangeSlider TValue="int" @bind-Value="_readonly" Label="ReadOnly" ReadOnly="true" />
<BOBInputRangeSlider TValue="int" @bind-Value="_disabled" Label="Disabled" Disabled="true" />
<BOBInputRangeSlider TValue="int" @bind-Value="_errorValue" Label="Error" Error="true" HelperText="Validation message goes here." />

Properties

19 rows.
PropertyTypeDefaultDescription
SizeBOBSizeBOBSize.MediumVisual size of the slider.
DensityBOBDensityBOBDensity.StandardVertical density (gap) of the slider.
ShadowShadowStyle?Shadow style applied to the slider container.
BackgroundColorstring?Background color of the rail. Accepts any valid CSS color value.
Colorstring?Filled-segment and thumb color. Accepts any valid CSS color value.
FullWidthbooltrueWhen , the slider spans the full width (or height in vertical) of its container.
Labelstring?Floating label rendered above the slider.
HelperTextstring?Helper text rendered below the slider for additional context.
MinTValueTValue.ZeroLower bound of the slider track. Defaults to TValue.Zero.
MaxTValueTValue.CreateChecked(100)Upper bound of the slider track. Defaults to 100.
StepTValueTValue.OneStep size used by keyboard increments and value snapping.
OrientationBOBSliderOrientationBOBSliderOrientation.HorizontalLayout orientation of the track.
ShowTicksboolWhen , tick marks are rendered along the rail at spacing.
TickIntervalTValue?Distance between rendered ticks. Falls back to when .
ShowValueLabelbooltrueWhen , a label surfaces over each thumb during drag or focus.
ValueLabelFormatstring?Format string applied to value labels and aria-valuetext. Standard or custom format.
CultureCultureInfo?Culture used to format . Defaults to .
AriaLabelMinstring"Minimum"Accessible label for the lower thumb.
AriaLabelMaxstring"Maximum"Accessible label for the upper thumb.