Bus UI TextInput
TextInput keeps ordinary text entry explicit.
Use TextInput for ordinary single-line text values. The checked
surface accepts TextInputProps; the simple string helper remains
available for legacy HTML-boundary callers.
Validated surface
| Function | TextInput, TextInputChecked, TextInputNodeChecked |
|---|---|
| Props | TextInputProps |
| Import path | github.com/busdk/bus-ui/pkg/ui |
| Use for | Single-line text controls with placeholder, disabled, readonly, and callback attributes. |
Example
Loading TextInput demo...
Go API
import (
ui "github.com/busdk/bus-ui/pkg/ui"
)
node, err := ui.TextInputNodeChecked(ui.TextInputProps{
Name: "title",
Value: "Bank statement",
Placeholder: "Evidence title",
})
.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 TextInputExample() gx.Node {
return <label class="field" for="description">
<Text value={"Description"}></Text>
<input id="description" name="description" type="text"></input>
</label>
}