Skip to main content

Variable: FormMessage

@arolariu/components


@arolariu/components / FormMessage

Variable: FormMessage

const FormMessage: ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & RefAttributes<HTMLParagraphElement>>

Defined in: components/ui/form.tsx:341

Renders the validation message or fallback message for the current form control.

Remarks

  • Renders a <p> element when content is available
  • Built on the shared form field metadata hook

Example

<FormMessage />

See

ARIA invalid state

// was this page useful?