Skip to content

RangeInput

widgetsinput

RangeInput component

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

PropTypeRequiredDescription
labelstringrequired
minnumberoptional
maxnumberoptional
stepnumberoptional
colorColoroptional
showValuebooleanoptional
onChange(low: number, high: number) => voidoptional
#input#range-input