Oihana Next UI - 0.9.0

Application logo

Range Components

Range Slider Examples

Simple Range

With Label

Show Value (Positions)

50
50
50

All Sizes

All Colors

With Steps and Markers

3
||||||
012345
|||||
0255075100

Custom Format

$500
20°C
75%

With Helper Text

80

Adjust screen brightness

50

Volume level from 0 to 100

With Error

$200

Value must be at least $500

Disabled

Controlled Range

50
Current value:50

Practical Use Cases

Audio Settings

70%
0
0
Center

Filter Products

€2500

Maximum price

3+ stars
||||||
⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐

Customer Satisfaction Survey

7
|||||||||||
012345678910
8
|||||||||||

0 = Not at all likely, 10 = Extremely likely

Image Adjustments

0
0
100%
0px

Dual Range (start + end)

range — two draggable handles pick a start and an end value.value/defaultValue are [start, end] tuples andonChange returns a sorted [start, end]. Horizontal only.

Same thing via the dedicated DualRange component (import DualRange from '.../components/ranges/DualRange') — no range prop needed.

25 – 65

Each handle is now labeled for screen readers (aria-label « start » / « end ») and exposes the formatted value (aria-valuetext, here « 5°C » / « 25°C »). Override the names with startAriaLabel / endAriaLabel. Inspect the two inputs to verify.

5°C – 25°C

minGap — the handles keep at least a fixed distance apart (here minGap=10, so start and end can never get closer than 10).

€30 – €60

Click anywhere on the rail below — the nearest handle jumps to that spot (like a native slider). Works on every dual range now.

30 – 70

onChangeEnd fires once on release (not on every tick) — ideal for API-backed filters. Drag below : the live value updates continuously, the badge only updates when you let go.

20 – 80
Committed on release:2080
€200 – €750
Selected:200750
2010 – 2020
€1000 – €3500

Drag both handles to set a min and max

€100 – €400

Start must be at least 500

Vertical

orientation="vertical" — height adjustable via the height prop (default h-64). Markers are not rendered in vertical mode.

55%