| Name |
Type |
Default value |
Description |
|---|
| AriaValueText |
Func<double, string>? |
null |
A text description of the Slider number value for the benefit of screen readers. This should be used when the Slider number value is not accurately represented by a number. The returned text becomes the aria-valuetext of every thumb. |
| AutoFocus |
bool |
false |
If true, the slider automatically receives focus when the page renders. |
| Classes |
BitSliderClassStyles? |
null |
Custom CSS classes for different parts of the BitSlider. |
| Color |
BitColor? |
null |
The general color of the slider, applied to the filled part of the track and to the thumbs. |
| DefaultLowerValue |
double? |
null |
The default lower value of the ranged Slider, used when LowerValue is not bound. |
| DefaultUpperValue |
double? |
null |
The default upper value of the ranged Slider, used when UpperValue is not bound. |
| DefaultValue |
double |
0 |
The default value of the Slider, used when Value is not bound. |
| DraggableTrack |
bool |
false |
Lets the filled band between the two thumbs of a ranged Slider be dragged bodily, so the whole range travels at once and keeps the width it had. Only the rail strictly between the thumbs takes the drag, so the thumbs themselves stay grabbable. |
| GetValueText |
Func<double, string>? |
null |
Builds the text of every label the Slider draws from the value it stands for. Takes precedence over ValueFormat, and is what AriaValueText falls back to. |
| Inverted |
bool |
false |
Fills the track from the far end instead of from the near one. A ranged slider inverts into the two outer segments, leaving the span between the thumbs unfilled. |
| IsOriginFromZero |
bool |
false |
Attaches the origin of the filled part of the track to zero. Shorthand for setting Origin to 0. |
| IsRanged |
bool |
false |
If ranged is true, display two thumbs that allow the lower and upper bounds of a range to be selected. |
| IsVertical |
bool |
false |
Whether to render the slider vertically. Its length comes from the --bit-sld-length CSS variable, which defaults to 12rem. |
| Label |
string? |
null |
Description label of the Slider, which also names it for assistive technologies when no AriaLabel is given. |
| LabelTemplate |
RenderFragment? |
null |
Replaces the plain text Label of the Slider with custom content. |
| LargeStep |
double? |
null |
The distance the larger keyboard jumps cover: Page Up and Page Down, and an arrow key held with Shift. It defaults to whatever the browser does on its own. |
| LowerAriaLabel |
string? |
null |
The accessible name of the lower thumb of a ranged slider. |
| LowerValue |
double |
0 |
The lower value of the ranged Slider. |
| Marks |
IEnumerable<BitSliderMark>? |
null |
The marks drawn along the track of the Slider, each optionally carrying a label. Takes precedence over ShowMarks. |
| MarkStep |
double? |
null |
The interval between the marks generated by ShowMarks. Defaults to the Step. |
| MaxRange |
double? |
null |
The largest distance the two thumbs of a ranged slider are allowed to be apart. |
| MinRange |
double |
0 |
The smallest distance the two thumbs of a ranged slider are allowed to be apart. Any value above zero also stops the thumbs from crossing. |
| Min |
double |
0 |
The min value of the Slider. |
| Max |
double |
10 |
The max value of the Slider. |
| Name |
string? |
null |
The name of the underlying range input, which is what makes the value readable by a plain form post. |
| NoFill |
bool |
false |
Leaves the track unfilled, so the slider is a bare rail with a thumb on it rather than a bar that grows. It also turns off the highlighting of the marks the fill would otherwise have reached. |
| NoSwap |
bool |
false |
Stops the two thumbs of a ranged slider from crossing over each other. |
| OnChange |
EventCallback<double> |
|
Callback when the value of a single-value Slider changes. This is called on every individual step. |
| OnChangeEnd |
EventCallback<double> |
|
Callback for when the interaction that changes the value ends, rather than on every step along the way. |
| OnFocusIn |
EventCallback<FocusEventArgs> |
|
Callback for when a thumb of the Slider receives the focus. |
| OnFocusOut |
EventCallback<FocusEventArgs> |
|
Callback for when a thumb of the Slider loses the focus. |
| OnRangeChange |
EventCallback<BitSliderRangeValue> |
|
Callback when the range of a ranged Slider changes. This is called on every individual step. |
| OnRangeChangeEnd |
EventCallback<BitSliderRangeValue> |
|
Callback for when the interaction that changes the range ends, rather than on every step along the way. |
| Origin |
double? |
null |
The value the filled part of the track grows out of, instead of the near end of the track. Has no effect on a ranged slider. |
| Pushable |
bool |
false |
Lets a thumb of a ranged slider push the other one along instead of stopping against it. It has nothing to do without a MinRange to keep or a NoSwap ordering to hold, and it keeps the thumbs on their own sides since pushing and crossing are opposites. |
| RangeValue |
BitSliderRangeValue? |
null |
The range value of the Slider. Use this parameter to get or set both the LowerValue and the UpperValue at once. |
| ReadOnly |
bool |
false |
Makes the Slider read-only: still focusable and announced, but refusing every change. |
| Required |
bool |
false |
Marks the Slider as required, which is announced through aria-required. |
| RestrictToMarks |
bool |
false |
Restricts the values the user can pick to the marks alone, so the thumb jumps from one mark to the next instead of moving by the Step in between them. |
| ShowMarks |
bool |
false |
Draws a mark at every MarkStep (or every Step when that is not set) along the track. |
| ShowMarkLabels |
bool |
false |
Labels the generated marks of ShowMarks with their own values. |
| ShowValue |
bool |
true |
Whether to show the value beside the Slider. |
| Size |
BitSize? |
null |
Size of the Slider, which scales its track, thumbs and labels together. |
| SliderBoxHtmlAttributes |
Dictionary<string, object>? |
null |
Additional html attributes for the Slider box, the element the track and the inputs are laid inside of. |
| Step |
double |
1 |
The difference between the two adjacent values of the Slider. Values of zero or below fall back to 1. |
| Styles |
BitSliderClassStyles? |
null |
Custom CSS styles for different parts of the BitSlider. |
| ThumbLabel |
BitSliderThumbLabel? |
null |
Decides when the floating label that rides along with the thumb is shown. |
| ThumbLabelTemplate |
RenderFragment<double>? |
null |
Replaces the text of the floating label that rides along with the thumb with custom content, built from the value that thumb stands for. |
| UpperAriaLabel |
string? |
null |
The accessible name of the upper thumb of a ranged slider. |
| UpperValue |
double |
0 |
The upper value of the ranged Slider. |
| Value |
double |
0 |
The value of the Slider. |
| ValueFormat |
string? |
null |
Custom format for the displayed value of the Slider, applied to the value labels, the mark labels and the floating thumb labels alike. |
| Name |
Type |
Default value |
Description |
|---|
| AriaLabel |
string? |
null |
Gets or sets the accessible label for the component, used by assistive technologies. |
| Class |
string? |
null |
Gets or sets the CSS class name(s) to apply to the rendered element. |
| Dir |
BitDir? |
null |
Gets or sets the text directionality for the component's content. |
| ForceAnimation |
bool |
false |
Gets or sets a value indicating whether the component's animations play at their full duration even when reduced motion is requested. |
| HtmlAttributes |
Dictionary<string, object> |
new Dictionary<string, object>() |
Captures additional HTML attributes to be applied to the rendered element, in addition to the component's parameters. |
| Id |
string? |
null |
Gets or sets the unique identifier for the component's root element. |
| IsEnabled |
bool |
true |
Gets or sets a value indicating whether the component is enabled and can respond to user interaction. |
| Style |
string? |
null |
Gets or sets the CSS style string to apply to the rendered element. |
| TabIndex |
string? |
null |
Gets or sets the tab order index for the component when navigating with the keyboard. |
| Visibility |
BitVisibility |
BitVisibility.Visible |
Gets or sets the visibility state (visible, hidden, or collapsed) of the component. |