Skip to Content
DocumentationComponents

Components

FormKit Gov provides React components that wrap VA Design System web components with React Hook Form integration.

Field Components

ComponentDescription
TextInputFieldSingle-line text input
TextareaFieldMulti-line text input
SelectFieldDropdown selection
CheckboxFieldSingle checkbox
CheckboxGroupFieldMultiple checkboxes
RadioFieldRadio button group
DateFieldDate picker (month/day/year)
MemorableDateFieldMemorable date with dropdowns
NumberFieldNumeric input
CurrencyFieldCurrency input with formatting
PhoneFieldPhone number with formatting
SSNFieldSocial Security Number with masking
FileUploadFieldFile upload with validation
ComboBoxFieldSearchable dropdown
PrivacyAgreementFieldPrivacy policy checkbox

Molecular Components

ComponentDescription
FullNameFieldFirst, middle, last, suffix
AddressFieldComplete address form

Review Components

ComponentDescription
ReviewSectionSection with edit button
ReviewItemSingle field display
ReviewListList of review items

Form Components

ComponentDescription
FormForm wrapper with React Hook Form
FormFieldField controller wrapper
FormItemField container
FormLabelField label
FormControlInput wrapper
FormDescriptionHelp text
FormMessageError message

Usage Example

import { Form, FormField } from '@formkit-gov/react'; import { TextInputField, SelectField } from '@formkit-gov/react/components'; <Form form={form} onSubmit={handleSubmit}> <FormField control={form.control} name="email" render={({ field, fieldState }) => ( <TextInputField {...field} label="Email address" type="email" error={fieldState.error?.message} required /> )} /> </Form>;

For interactive examples, visit Storybook .

Last updated on