ElixirOpentui.Widgets.TextArea (ElixirOpentui v0.2.0)

Copy Markdown View Source

Multi-line text editor widget.

Wraps the EditBuffer and EditorView NIF resources to provide a full-featured textarea with cursor movement, selection, undo/redo, word navigation, and line wrapping.

Props

  • :id — element id (required for focus)
  • :value — initial text value
  • :placeholder — placeholder text when empty
  • :on_change — message tag sent as {tag, new_value} on edit
  • :on_submit — message tag sent as {tag, value} on Alt+Enter
  • :width — display width (default 40)
  • :height — display height (default 10)
  • :wrap — wrap mode: :word, :char, or :none (default :word)