FormMessagecomponent

FormMessage(props: Omit<MessageProps, "children">): ReactElement | null
ParamType
propsOmit<MessageProps, "children">
Message props (excluding children) forwarded to the underlying <Message>. required
Return
ReactElement | null
A <Message status="error"> containing the message, or null when empty.

Show the current form's "main" (unnamed) message as a <Message>, or render nothing when there is no message.

Examples

<FormMessage />