ScalePrompt
uitemplate
ScalePrompt component
Terminal
$termuijs render scale-prompt
Installation
$ bunx termuijs add scale-prompt
Copies the source into src/components/scale-prompt/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { ScalePrompt } from '@termuijs/ui'ts
new ScalePrompt(style?: Partial<Style>, opts: ScalePromptOptions = {})API Reference
ScalePrompt
| Prop | Type | Required | Description |
|---|---|---|---|
max | number | optional | — |
question | string | optional | — |
endLabels | [string, string] | optional | — |
activeColor | Color | optional | — |
onSelect | (value: number) => void | optional | — |