Bus UI PasswordInput
PasswordInput never echoes stored secrets.
Use PasswordInput for secret entry. The checked helpers take explicit
name, value, placeholder, autocomplete, attrs, and log arguments so callers can
choose the autocomplete policy without inventing a props type.
Validated surface
| Function | PasswordInput, PasswordInputChecked, PasswordInputNodeChecked |
|---|---|
| Props | Explicit checked-helper arguments; no PasswordInputProps type is currently exported. |
| Import path | github.com/busdk/bus-ui/pkg/ui |
| Use for | Password and token entry where existing values must not be echoed into the DOM. |
Example
Loading PasswordInput demo...
Go API
import (
ui "github.com/busdk/bus-ui/pkg/ui"
)
node, err := ui.PasswordInputNodeChecked(
"password",
"",
"Enter your password",
"current-password",
nil,
nil,
)
.gx source
In .gx source, author the visible component state as GX markup.
Keep the Go API block above for the package helper or render-boundary call.
package busuiexamples
import gx "github.com/busdk/bus-gx/pkg/gx"
func PasswordInputExample() gx.Node {
return <label class="field" for="description">
<Text value={"Description"}></Text>
<input id="description" name="description" type="password"></input>
</label>
}