PasswordInput
uitemplate
PasswordInput component
Terminal
$termuijs render password-input
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
| Prop | Type | Required | Description |
|---|---|---|---|
placeholder | string | optional | — |
maxLength | number | optional | — |
onChange | (value: string) => void | optional | — |
onSubmit | (value: string) => void | optional | — |