Skip to content

Slider

widgetsinput

Slider component

Installation

$ bunx termuijs add slider

Copies the source into src/components/slider/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { Slider } from '@termuijs/widgets'
ts
new Slider(label: string, style: Partial<Style> = {}, opts: SliderOptions = {})

API Reference

Slider

PropTypeRequiredDescription
labelstringrequired
minnumberoptional
maxnumberoptional
stepnumberoptional
colorColoroptional
showValuebooleanoptional
#input#slider