FormFieldWrapper
This is a wrapper that can be used in all forms to wrap the actual form control, and provide a label, description and error message.
Use this instead of the default Shadcn FormField (etc.) components, as it also supports overridden form components.
Example
If you are dealing with translatable fields, use the TranslatableFormFieldWrapper component instead.
Parameters
props
parameter
FormFieldWrapperProps<TFieldValues, TName>The props for the FormFieldWrapper component.
Was this chapter helpful?