Skip to content

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; gap keeps a minimum distance.
  • format sets what's shown and read (¥1,980). name submits both thumbs, low then high.

Usage ​

ts
import { BlessRange } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
idstring—
namestring—both thumbs submit under this name, low then high
minnumber0
maxnumber100
stepnumber1
labelstring—
showValuebooleanfalse
format((v: number) => string)—
disabledboolean—
gapnumber0minimum distance between the thumbs
modelValue[number, number][25, 75][low, high]

Events

NamePayloadDescription
update:modelValue[value: [number, number]]

Released under the MIT License. Character names and artwork belong to their owners.