Skip to content

HelperText

Small, subtle paragraph for persistent guidance under a form control — pair with an Input via aria-describedby.

  • stable
  • since v0.1.0
  • 0.4 kB
  • forms
  • feedback

Renders a styled <p>; reference its id from the related input via aria-describedby.

Preview
Open
tsx

Wire the helper to its input by giving the HelperText a stable id and pointing the input’s aria-describedby at it.

Preview
Open
tsx

Inside a FormField, prefer FormDescription — it renders a HelperText and auto-registers its id on the control via aria-describedby.

Preview
Open
tsx
PropTypeDefaultDescription
  • Renders a plain <p> — it carries no live-region semantics, which is the correct choice for persistent guidance.
  • Always associate it with the field via aria-describedby so the text is announced when focus enters the input.
  • Keep copy short and specific — long descriptions hurt readability for sighted and screen-reader users alike.
  • Use ErrorText (with role="alert") for transient validation; HelperText is for guidance that’s always true.
  • Place directly under the input it describes — proximity matters as much as the aria wiring.
  • Within Form, swap HelperText for FormDescription so the wiring is automatic.
  • Reserve ErrorText for validation errors; keep HelperText for unconditional hints.