Forms
TwSlider
TwSlider is a Blazor slider component for choosing a number in a range. Bind Value and set Min, Max, Step and Color.
Last updated
Basic Usage
A drop-in replacement for
<input type="range"> with a fully custom, themeable track and thumb.Current Volume: 50%
Colors
Use
Color to give a slider meaning at a glance - here it signals status rather than just decoration.82% remaining
34% load
4 / 5 bars
Precision & Range
Any comparable numeric type works via
T - use decimals with a fractional Step for fine control, or negative Min values for ranges that cross zero.Selected Price: $25.50
Set to: 20°C
Disabled & Readonly
Disabled dims and locks the slider; ReadOnly keeps its color but blocks changes.Theme Configuration
Styling is controlled by
TwBlazorTheme.Components (a TwSliderTheme), configured via the
AddTwBlazor() options callback described on the Get Started page.
Every property is a set of Tailwind classes, so changes are picked up by your own Tailwind build.
Global Theme Configuration
These reuse shared design tokens configured once on TwBlazorTheme, rather than being unique to this component.
| Property | Type | Controls |
|---|---|---|
Colors |
TwBlazorPalette |
Full reference: TwSliderTheme on the API docs.