Bus UI Text Area

Multiline text with node-first rows and attributes.

Use the textarea helper when a control needs a larger text box, fixed rows, and the same controlled validation path as the single-line input helpers.

Public surface

FunctionProps typeImport path
TextAreaTextAreaPropsgithub.com/busdk/bus-ui/pkg/ui

When to use it

Use TextArea for notes, descriptions, and longer free-form fields that still need a stable name, label, and safe attributes. The public API is pkg/ui.

See also Field, Input, and Reference.

Example

Loading TextArea demo...

Go API

import (
  gx "github.com/busdk/bus-gx/pkg/gx"
  ui "github.com/busdk/bus-ui/pkg/ui"
)

node, err := ui.TextArea(ui.TextAreaProps{
  Name:        "notes",
  Value:       "Reviewed by accounting.",
  Placeholder: "Add notes",
  Rows:        4,
})
if err != nil {
  return err
}

html, err := gx.RenderHTML(node)

.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 TextAreaExample() gx.Node {
  return <label class="field" for="notes">
  <Text value={"Notes"}></Text>
  <textarea id="notes" name="notes" placeholder="Add context"></textarea>
</label>
}