Form

Form is a wrapper component to apply a <form /> wrapper and handle form submissions.

Import

import { Form } from '@contentful/f36-components';
// or
import { Form } from '@contentful/f36-forms';

Examples

Go ahead and add some fields into your form:

Basic

Using character count

Content guidelines

  • The Form component should wrap form elements into <form />
  • Provide an onSubmit handler for form validation and submission
  • The state of the validation of the form should be manipulated from outside

Integrations

It is possible to integrate the form with solutions like Formik or React form hook