Form Field
Introduction
The FormField
component is a utility component to help compose form fields.
In some cases the FormField
is already combined in components such as TextInputField
and SelectField
.
FormField
Props
This component composes ui-box
labelnode
requiredThe label used above the input element.
labelForstring
Passed on the label as a htmlFor prop.
isRequiredbool
Whether or not show an asterix after the label.
descriptionnode
An optional description of the field under the label, above the input element.
hintnode
An optional hint under the input element.
validationMessagenode
If a validation message is passed it is shown under the input element
and above the hint. This is unaffected by `isInvalid`.