NumberInput
uitemplate
NumberInput component
Terminal
$termuijs render number-input
Installation
$ bunx termuijs add number-input
Copies the source into src/components/number-input/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { NumberInput } from '@termuijs/ui'ts
new NumberInput(style: Partial<Style> = {}, options: NumberInputOptions = {},)API Reference
NumberInput
| Prop | Type | Required | Description |
|---|---|---|---|
placeholder | string | optional | — |
step | number | optional | — |
min | number | optional | — |
max | number | optional | — |
allowDecimal | boolean | optional | — |
onChange | (value: number | null) => void | optional | — |
onSubmit | (value: number | null) => void | optional | — |