Skip to main content

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.
Make sure each name is unique within a Form to avoid collisions.

Form

A container that groups input components and handles submission. Wrap your inputs inside a Form 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:
onChangeAction fires once when the user releases the thumb (or finishes a keyboard adjustment), not on every tick while dragging — so it’s safe to wire it to a server function. The current value is always available in the widget’s data under the slider’s name.