Common Form Input Props
Input, Textarea, Select, DatePicker, Checkbox, RadioGroup, and Slider all share the following props for handling form data and interaction.
The
name prop on a form input automatically creates a variable in the widget’s data. For example, an <Input name="email" /> creates an email variable that you can reference elsewhere in the widget using {email}, use in template tokens as {{email}}, or check in state conditions.Form
A container that groups input components and handles submission. Wrap your inputs inside aForm to collect their values together when the user submits.
Props
Form accepts all Box props plus:
Place a
Button with the submit prop inside the Form to trigger submission. All inputs within the form will have their values collected automatically.Input
A single-line text input for collecting short-form data like emails, names, or numbers.Props
In addition to all common form input props,Input accepts:
Textarea
A multi-line text input for collecting longer-form content like messages or descriptions.Props
In addition to all common form input props,Textarea accepts:
Select
A dropdown for choosing one option from a list. Supports search, clearing, and custom option descriptions.Props
In addition to all common form input props,Select accepts:
Each option in the
options array requires a label (displayed text) and a value (submitted data). You can optionally include disabled to gray out an option or description to show helper text below the label.DatePicker
A calendar-based date selector rendered inside a popover. Use it for collecting dates with optional min/max constraints.Props
In addition to all common form input props,DatePicker accepts:
Checkbox
A single toggle for boolean choices, rendered with an accompanying label.Props
In addition to all common form input props,Checkbox accepts:
RadioGroup
A group of radio buttons for selecting exactly one option from a set. Supports horizontal or vertical layout.Props
In addition to all common form input props,RadioGroup accepts:
Slider
A draggable slider for picking a numeric value between a minimum and maximum — quantities, ratings, budgets, or parameter adjustment. The value is submitted as a number.Props
In addition to all common form input props,Slider accepts:
Dropzone
A drag-and-drop area for uploading files. Files start uploading the moment they are dropped or picked, and a list under the area shows each file’s progress, success or error, with retry and remove controls. Requires an Upload File Function. See the File Uploads guide.Props
The
name variable is an array of file records: { name, size, type, status, url, error, response }, where status is staged, uploading, success or error. Use {photos[0].url} in the code or {{photos[0].url}} in template tokens once a file has uploaded.FileInput
A button-styled file picker for compact layouts. It behaves likeDropzone without the drop area, and shares the same file list, limits and function.
