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

FunctionTextInput, TextInputChecked, TextInputNodeChecked
PropsTextInputProps
Import pathgithub.com/busdk/bus-ui/pkg/ui
Use forSingle-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>
}