FormControl provides context such as
to form elements. This context is used by the following components:
It follows the WAI specifications for forms.
We'll never share your email.
Sample usage for a radio or checkbox group#
Making a field required#
By passing the
isRequired props, the
Input field has
aria-required set to
true, and the
FormLabel will show a red asterisks.
Usage with Form Libraries#
Form Libraries like Formik make it soooo easy to manage form state and validation. I 💖 Formik
Proudly made in 🇳🇬
Released under the MIT License.
Copyright © 2020 Segun Adebayo