Lumeo

Slider

An input where the user selects a value from within a given range.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Slider />

When to Use

  • Select a value from a continuous or stepped numeric range
  • Control volume, brightness, or opacity with a drag interaction
  • Filter products by price range using a dual-thumb range slider
  • Set thresholds, limits, or budgets visually
  • Provide an intuitive alternative to numeric text inputs for bounded values

Value: 50

Value: 500 / 1000

Value: 5

Volume: 75%

Range: 25 — 75

Hover over the slider to see the tooltip

0
25
50
75
100

Value: 50

Value: 65%

Keyboard Interactions

Key Action
ArrowRightIncrease the value by one step
ArrowLeftDecrease the value by one step
ArrowUpIncrease the value by one step (vertical orientation)
ArrowDownDecrease the value by one step (vertical orientation)
HomeSet the value to the minimum
EndSet the value to the maximum
TabMove focus to the slider thumb or next focusable element

API Reference

Slider

Styling hooks (data-orientation / data-disabled)

The slider root, track, range, and thumbs expose data-orientation (horizontal / vertical) and data-disabled, so orientation- and disabled-specific styling can be targeted from CSS (e.g. data-[orientation=vertical]:…) without extra classes.

  • Input — Use a numeric input when the user needs to type an exact value rather than drag
  • Progress — Use to display a read-only progress bar rather than an interactive slider