FormControl
FormControl displays a labelled input and, optionally, associated validation text and/or hint text.
Use FormControls when requiring data input from the user. For example, creating a new repo configuring settings, and logging in.
This component is a helper component to keep layouts consistent and ensure the correct ARIA attributes are set. You can find some of Primer's form components listed in the Related links section.
React examples
Default
Required field
With validation message and caption text
Something went wrong
Props
Loading data for form_control...