Input Actions
Input actions let users interact with your app by entering data, making choices, and triggering events.
Button Actions
.button
Creates a clickable button:
.button "Next" [next-screen]
.button "Save" { set $saved = true }
Text Input Actions
.enter-text
Single line text input:
.enter-text $user-name "Enter your name"
.enter-email
Email input with validation:
.enter-email $email "Your email address"
.enter-password
Password input (hidden text):
.enter-password $password "Enter password"
Selection Actions
.select
Dropdown selection:
.select $color "Choose a color" ["Red", "Blue", "Green"]
.switch
Toggle switch:
.switch $notifications "Enable notifications"
More content coming soon…