Form Field

View on GitHub

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

labelnoderequired
The label used above the input element.
labelForstring
Passed on the label as a htmlFor prop.
isRequiredbool
Wether or not show a asterix after the label.
descriptionnode
A optional description of the field under the label, above the input element.
hintnode
A optional hint under the input element.
validationMessagenode
If a validation message is passed it is shown under the input element and above the hint.
labelProps = { size: 400 }