Range
Two-thumb range on native inputs
A span between two values — a price band, a date window, an age range. For one value use Slider; when people know the exact numbers, two InputNumbers are quicker.
Basic
¥1,980 – ¥6,800
9:00 – 17:00
- Two native ranges, each with its own name ("Price minimum", "Price maximum") and keys. A thumb can't pass the other;
gapkeeps a minimum distance. formatsets what's shown and read (¥1,980).namesubmits both thumbs, low then high.
Usage
ts
import { BlessRange } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | — | |
name | string | — | both thumbs submit under this name, low then high |
min | number | 0 | |
max | number | 100 | |
step | number | 1 | |
label | string | — | |
showValue | boolean | false | |
format | ((v: number) => string) | — | |
disabled | boolean | — | |
gap | number | 0 | minimum distance between the thumbs |
modelValue | [number, number] | [25, 75] | [low, high] |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: [number, number]] |