Basic validation will trigger and prevent the form from submitting. And red validation text will show under the input
const user = {first_name: 'this text will appear in the first name input'};
const handleFormSubmit = async (form_data) => {
console.log("form values: ", {form_data});
};
<Form onSubmit={handleProfileUpdate} defaultData={user}>
<TextInput
label="First Name"
name="first_name"
required
/>
<TextInput
label="Last Name"
name="last_name"
required
/>
<TextInput
name="email"
label="Email"
type="email"
required
/>
<SubmitButton variant="primary" title="Update" />
</Form>