Skip to content

FieldError

Props

API reference for FieldError. For usage examples, see the React tab.

NameTypeDefault
childrenChildrenOrFunction<FieldErrorRenderProps>

The children of the component. A function may be provided to alter the children based on component state.

elementTypestring'span'

The HTML element type to render. Defaults to 'span'. Set to 'div' when using block-level children (e.g. <ul>) to avoid invalid HTML.