PinInput
input
PinInput component
Terminal
$termuijs render pin-input
Installation
$ bunx termuijs add pin-input
Copies the source into src/components/pin-input/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { PinInput } from '@termuijs/widgets'ts
new PinInput(style: Partial<Style> = {}, opts: PinInputOptions = {})API Reference
PinInput
| Prop | Type | Required | Description |
|---|---|---|---|
length | number | optional | — |
masked | boolean | optional | — |
onChange | (value: string) => void | optional | — |
onComplete | (value: string) => void | optional | — |