Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt

Use this file to discover all available pages before exploring further.

Textarea

Textarea renders a multi-line text input and sends a payload with value = string to Lua on change.
local message, setMessage = track.state('message', 'Lua-driven UI')

lui.page('message', function(ui)
  ui.textarea({
    value = message,
    placeholder = 'Write a message',
    className = 'min-h-[96px]',
    onChange = function(payload)
      setMessage(payload.value)
    end
  })
end)

API

ui.textarea(props)

Props

PropTypeDescription
valuestring | reactive getterCurrent text.
placeholderstringPlaceholder text.
onChangefunction(payload)Receives a payload with value = string.
textareaClassName, inputClassNamestringTextarea element classes.
className, stylemixedCommon LUI styling props.