Skip to content

PasswordInput

uitemplate

PasswordInput component

Installation

$ bunx termuijs add password-input

Copies the source into src/components/password-input/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { PasswordInput } from '@termuijs/ui'
ts
new PasswordInput(style: Partial<Style> = {}, options: PasswordInputOptions = {},)

API Reference

PasswordInput

PropTypeRequiredDescription
placeholderstringoptional
maxLengthnumberoptional
onChange(value: string) => voidoptional
onSubmit(value: string) => voidoptional
#template#password-input