Forms
TwRangeSlider
TwRangeSlider is a Blazor range slider with two handles for choosing a minimum and maximum value. Bind LowerValue and UpperValue and set Min, Max and Step.
Last updated
Please be aware this component is new, may have bugs and/or be subject to change. Please report any bugs at
https://github.com/twblazor/twblazor/issues.
Basic usage
Bind
LowerValue and UpperValue to pick a range between Min and Max. The handles cannot pass each other.From $200 to $750
Colors
Use
Color to tint the filled range between the handles.19°C to 23°C
Alert between 20% and 80%
Minimum distance
Set
MinDistance to keep a gap between the handles. Here a booking must be at least two hours long.10:00 to 14:00 (4 hours)
Precision
Any numeric type works through
T. Use decimal or double with a fractional Step for fine control.Rated 3.5 to 5.0
Disabled & readonly
Disabled dims and locks both handles; ReadOnly keeps the color but blocks changes.Theme configuration
Styling is controlled by
TwBlazorTheme.Components (a TwRangeSliderTheme), 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.
Full reference: TwRangeSliderTheme on the API docs.