Configure a clear text field
Insert a text field from Widgets or a form Section. Give each input a visible label and useful hint. A label describes the value; a hint can show a fictional example. Hide input gives a password-style appearance for demonstrations.
- Select the input in Design.
- Edit Label and Hint in Inspector or the double-click dialog.
- Create compatible text state and bind it.
- Type a sample value in Preview.
- Review focus, copy and the resulting action.
Hiding characters does not create authentication, password storage or an account service. Keep real credentials out of prototype forms.
Configure switches and choice controls
Checkboxes and switches use booleans. Dropdowns and segments use text and a list of options. Sliders use numbers. Choose the widget according to the decision, rather than using a dropdown for every field.
The Snake settings page offers Relaxed, Normal and Fast. Its text state supplies game speed. Keep option spelling consistent with expected values. Renaming visible options does not rewrite every related state reference or game rule.
Test menus near the bottom of a screen and on narrow devices. The binding reference helps resolve a selection that resets unexpectedly.
Attach a form action
A form's primary button needs an action. Start with an observable local operation, such as appending a draft or navigating after a boolean consent condition. Configure supported steps in Actions and attach the action in Inspector.
The healthcare kit demonstrates consent-gated local appointment confirmation without contacting a clinic. Use this to learn input-to-action behavior, then define the real service separately in exported source. Check the unchecked case as deliberately as the successful case.
Test empty and unexpected values
Try a normal value, empty text, a long label, repeated taps and an option change. Observe the actual workflow. A polished form does not imply complete production validation.
Record missing validation as follow-up work. Implement rules beyond supported visual actions in exported code. Check the narrow layout after changing copy. Follow the first-app walkthrough for a complete input, action and preview exercise.
Keep the initial value, runtime value and visible hint distinct. A hint suggests input; it should not be mistaken for a submitted value. Download a JSON backup before changing a shared form and its state definitions together.
Example: change wording without changing a binding
Select the message field in the chat kit and open its content dialog. Give it a clearer label and hint, then save. Inspect its state binding: it should still reference draft. In Preview, type a fictional message and choose Send locally. The message should appear and the composer should clear.
This check is useful after copy or layout work because a form has both presentation and behavior. Changing the label is independent of changing the state key. Keep the test small enough to repeat after a manual edit or an AI proposal.