Skip to main content

BasicSecureTextField

Function BasicSecureTextField 

Source
pub fn BasicSecureTextField(
    state: Rc<RefCell<TextFieldState>>,
    modifier: Modifier,
    hint: impl Into<String>,
    config: TextFieldConfig,
) -> View
Expand description

Secure text field for password entry. Corresponds to Compose’s BasicSecureTextField.

Wraps BasicTextField with secure defaults: single-line, password keyboard, text obfuscation, and disabled cut/copy.

Like BasicTextField this draws no chrome of its own, so without a hint or a decorator an empty field is invisible. Pass a hint, a decorator, or both.