# 043: Simple Form
# Structured input collection

form contact:
  input name -> user.name
  input email -> user.email
  input message -> user.message
  button "Send" -> send_message(user)

send_message(data):
  show "Message from {data.name}"
  show "Email: {data.email}"
  show "Message: {data.message}"

# Form automatically renders in the UI
# Button triggers the handler function
