Slider component
The <Slider>
component is a better visualization of the number input. It is used for gathering numerical user data.
Examples
Basic
<Slider TValue="decimal" Value="25m" Max="100m" />
Note: Since Slider is a generic component you will have to specify the exact data type for the value.
Most of the time it will be recognized automatically when you set the
Value
attribute, but if not
you will just use the TValue
attribute and define the type manually.
Attributes
Name | Description | Type | Default |
---|---|---|---|
TValue |
Value data type.
|
generic |
|
Value |
The value that the tick represents. | TValue |
default |
ValueChanged |
Occurs after the value has changed. | EventCallback<TValue> |
|
Step |
Specifies the interval between valid values. | TValue |
1 |
Min |
Minimum value. | TValue |
default |
Max |
Maximum value. | TValue |
default |