Skip to content

FormSet

Description

The FormSet component gives You both a HTML form element <form> by default and also a React provider for FormRow. This way You can define more globally e.g. if all the rows should be displayed vertically.

<FormSet direction="vertical">
<FormRow>/** Components are now vertical aligned */</FormRow>
<FormRow>/** Components are now vertical aligned */</FormRow>
</FormSet>

Demos

A h2 in a FormRow without a label

Long Group name Vitae dapibus eros viverra torquent euismod at dignissim vel mattis:

Use the FormSet as a Provider for FormRow

A h2 in a FormRow without a label

Vertical form-set

FormSet with on_submit event and prevent_submit set to true