A form input helper text component.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
asHtmlboolean

Whether or not to accept HTML in the content

contentstring

Helper text.

customAttributesobject

Custom attributes for the component.

customClassesstring | Array | object

Custom classes for the component.

idstring

Id for the helper text.

sizestring

The font size for the helper text.

spacingstring | number | Array | object

The spacing for the component, as a string, number, array, or object.

weightstring

The font weight for the label.

refobject | null

Ref to the component.

Since
  • 1.1.18
Returns:

The help text component.

Type: 
JSX.Element
Example
import HelpText from '@gravityforms/components/react/admin/elements/HelpText';

return <HelpText content="This is required." />;