Search...

Search documentation...

Molecules

Form Helper Text

Form Helper Text

Field-level helper text with a state — info/success/warning/error, not just neutral-or-error like plain form descriptions. For a field's validation error, prefer FieldError (it also wires aria-invalid/aria-describedby); reach for this when you need success/info states, or a helper text outside a Field.

import { FormHelperText } from "@pompeitech/vesuvius-ui";

Variants

We'll never share your email.

Your plan renews on the 1st.

Username is available.

This action can't be easily undone.

Password must be at least 8 characters.

Paired with a field

Username is available.

API

FormHelperText

PropTypeDefaultDescription
variant"default" | "info" | "success" | "warning" | "error""default"Sets both the text color and the leading icon.
showIconbooleantrueIgnored for "default", which has no icon regardless.

Plus every native <p> prop.

Accessibility

Purely visual coloring/iconography — it carries no ARIA role of its own. When paired with a field, associate it via aria-describedby pointing at its id so assistive tech reads it alongside the field; inside a Field, prefer FieldError/FieldDescription, which wire this automatically.