Slider

The ArcadiaSlider component wraps a native <input type="range"> with styling, label support, and an optional value display.

Basic Usage

<ArcadiaSlider @bind-Value="volume" Min="0" Max="100" Label="Volume" />

<ArcadiaSlider @bind-Value="price"
               Min="0"
               Max="1000"
               Step="10"
               Color="success"
               ShowValue="true" />

Parameters

ParameterTypeDefaultDescription
Valuedouble0Current slider value. Supports two-way binding.
Mindouble0Minimum value.
Maxdouble100Maximum value.
Stepdouble1Step increment.
ShowValuebooltrueWhether the current value is displayed next to the slider.
DisabledboolfalseWhether the slider is disabled.
Colorstring"primary"Color theme: "primary", etc.
Labelstring?nullLabel text displayed above the slider.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Events

EventTypeDescription
ValueChangedEventCallback<double>Fired when the slider value changes.

Accessibility

  • The <label> element is linked to the input via for/id.
  • The range input includes aria-label, aria-valuemin, aria-valuemax, and aria-valuenow.
  • Native range input provides built-in keyboard support (arrow keys, Home, End, Page Up/Down).