Component

BOBInputNumberSlider

Single-thumb slider for any INumber<T> value with min/max/step, ticks, value label, horizontal and vertical orientation, and full keyboard support.

API reference ↗

Basic usage

30
RAZOR
<BOBInputNumberSlider TValue="int" @bind-Value="_basic" Label="Volume" />

Min, Max & Step

60
RAZOR
<BOBInputNumberSlider TValue="int" @bind-Value="_brightness" Label="Brightness" Min="0" Max="100" Step="5" />

Decimal values

21.5 °C
RAZOR
<BOBInputNumberSlider TValue="decimal" @bind-Value="_temperature" Label="Temperature" Min="-20m" Max="40m" Step="0.5m" ValueLabelFormat="0.0 °C" />

Ticks

50
RAZOR
<BOBInputNumberSlider TValue="int" @bind-Value="_zoom" Label="Zoom" Min="0" Max="100" Step="10" ShowTicks="true" />

Vertical orientation

40
60
75
RAZOR
<div style="height: 240px; display: flex; gap: 2rem;">
    <BOBInputNumberSlider TValue="int" @bind-Value="_verticalA" Label="Bass" Orientation="BOBSliderOrientation.Vertical" Min="0" Max="100" />
    <BOBInputNumberSlider TValue="int" @bind-Value="_verticalB" Label="Mid" Orientation="BOBSliderOrientation.Vertical" Min="0" Max="100" />
    <BOBInputNumberSlider TValue="int" @bind-Value="_verticalC" Label="Treble" Orientation="BOBSliderOrientation.Vertical" Min="0" Max="100" />
</div>

Sizes

25
50
75
RAZOR
<BOBInputNumberSlider TValue="int" @bind-Value="_sizeS" Label="Small" Size="BOBSize.Small" />
<BOBInputNumberSlider TValue="int" @bind-Value="_sizeM" Label="Medium (Default)" Size="BOBSize.Medium" />
<BOBInputNumberSlider TValue="int" @bind-Value="_sizeL" Label="Large" Size="BOBSize.Large" />

Color & Background

50
RAZOR
<BOBInputNumberSlider TValue="int" @bind-Value="_colored" Label="Custom Color" Color="@PaletteColor.Secondary" BackgroundColor="@PaletteColor.SecondaryContrast" />

States

0
42
42
5
Validation message goes here.
RAZOR
<BOBInputNumberSlider TValue="int" @bind-Value="_required" Label="Required" Required="true" />
<BOBInputNumberSlider TValue="int" @bind-Value="_readonly" Label="ReadOnly" ReadOnly="true" />
<BOBInputNumberSlider TValue="int" @bind-Value="_disabled" Label="Disabled" Disabled="true" />
<BOBInputNumberSlider TValue="int" @bind-Value="_errorValue" Label="Error" Error="true" HelperText="Validation message goes here." />

Properties

18 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. Defaults to TValue.Zero.
MaxTValueTValue.CreateChecked(100)Upper bound. Defaults to 100.
StepTValueTValue.OneStep size. Defaults to TValue.One.
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 the thumb during drag or focus.
ValueLabelFormatstring?Format string applied to the value label and aria-valuetext. Standard or custom format.
CultureCultureInfo?Culture used to format . Defaults to .
AriaLabelstring?Accessible label for the thumb. Falls back to .