When to use it
Keep authentication and credential lifecycle in the application. Visibility is transient and never saved. Use newPassword for registration; provider autofill needs device configuration.
Enter passwords with transient visibility and native credential autofill hints.
Native example
Keep authentication and credential lifecycle in the application. Visibility is transient and never saved. Use newPassword for registration; provider autofill needs device configuration.
LumenPasswordField(
label = "Password", value = password,
onValueChange = { password = it },
showLabel = "Show password", hideLabel = "Hide password"
)Reference
The primary shared and platform-specific options exposed by LumenPasswordField.
| API | Values or type | Default | Description |
|---|---|---|---|
| label / value / onValueChange | String / String / (String) -> Unit | Required | Names the native field and controls its value. |
| modifier | Modifier | Modifier | Applies layout and semantics. |
| description / errorMessage | String? | null | Provides translated help or validation. |
| showLabel / hideLabel | String | Show password / Hide password | Names the visibility action. |
| newPassword | Boolean | false | Uses Android new-password instead of existing-password autofill hints. |
| onSubmit | (() -> Unit)? | null | Handles the IME Done action without automatic authentication. |
| enabled / readOnly | Boolean | true / false | Controls editing and visibility actions. |
Native behavior
Keep authentication and credential lifecycle in the application. Visibility is transient and never saved. Use newPassword for registration; provider autofill needs device configuration.
Preserves password semantics and native autofill hints; labels visibility actions and hides on blur or disabled state.
Shared component