Design a form
Best practices
A form usually requires a stepper component and form items. To build the form with efficiency, it is recommended to use the following method:
-
Plan: Create an initial layout that a step form will need, a StepForm component.
-
Build one form item: Design a single form items with all the correct styling and the mandatory validations.
-
Duplicate the form item: Clone that form item and to rapidly build the rest of the form.
-
Repeat: Clone the entire form to create the next section of the form.
-
Customise: Modify the form item that requires special validation rules.
-
Design form submission: Allow the user to verify whether they want to submit the form by adding a modal via the Dialog component, as well as a Loading component.
-
Integrate: Bind form items and the corresponding inputs.
Last updated on 20 May 2026