Extensions

Press shift + S to search API reference.

React component

FormField

View source

Props

interface FormFieldProps extends FormFieldStyleProps
childrenReact.ReactNode

The contents of the form field.

classNameundefined | string

Additional class names to apply to the form field.

descriptionReact.ReactNode | string | null

The description content for the form field. Displayed beneath the label and above the wrapped control field.

htmlForundefined | string

The for attribute to be applied to the inner label. By default, the form field will automatically generate a random ID and set it on both the label and the wrapped input/select. Only use this property if you want to override the generated ID with your own custom ID.

idundefined | string

The id attribute.

labelReact.ReactNode

The label content for the form field.

styleReact.CSSProperties

Additional styles to apply to the form field.