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