Skip to content

PasswordField

Secure masked text input hiding characters with bullets or custom mask glyphs.

Overview

PasswordField extends TextInput while rendering a mask character (such as * or •) instead of raw characters. The actual plain text remains accessible securely via text().

Login Password Input

PasswordField password = new PasswordField()
        .placeholder("Password")
        .mask('*');

API

PasswordField::mask(char)

Set Mask Character

Sets the character glyph used to obscure password input.

Parameter Type Description
mask char mask char

Returns PasswordField: this widget for fluent configuration.