RangeInput
input
RangeInput component
Terminal
$termuijs render range-input
Installation
$ bunx termuijs add range-input
Copies the source into src/components/range-input/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { RangeInput } from '@termuijs/widgets'ts
new RangeInput(label: string, style: Partial<Style> = {}, opts: RangeInputOptions = {},)API Reference
RangeInput
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | required | — |
min | number | optional | — |
max | number | optional | — |
step | number | optional | — |
color | Color | optional | — |
showValue | boolean | optional | — |
onChange | (low: number, high: number) => void | optional | — |