Skip to content

PinInput

widgetsinput

PinInput component

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

PropTypeRequiredDescription
lengthnumberoptional
maskedbooleanoptional
onChange(value: string) => voidoptional
onComplete(value: string) => voidoptional
#input#pin-input