Skip to content
Hint that becomes the error, light
Light
Hint that becomes the error, dark
Dark

Every state

  • Hint that becomes the error, default, light
    Hint that becomes the error, default, dark

    default

  • Hint that becomes the error, focus, light
    Hint that becomes the error, focus, dark

    focus

  • Hint that becomes the error, error, light
    Hint that becomes the error, error, dark

    error

  • Hint that becomes the error, valid, light
    Hint that becomes the error, valid, dark

    valid

  • Hint that becomes the error, server-error, light
    Hint that becomes the error, server-error, dark

    server-error

  • Hint that becomes the error, disabled, light
    Hint that becomes the error, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"booking-reference"Input id; the message line hangs off it.
namestring"bookingReference"Form field name.
labelstring"Booking reference"Visible label.
examplestring"AB-123456"The format example.
hintLabelstring–Text before the example in the hint.
validate(value: string) => string | undefined–Returns the error for a value, or nothing. Runs when the field is left, then on every change. An error ending in "like" gets the example after it.
validLabelstring"Looks right"Shown once the value is right.
placeholderstring–Placeholder inside the field.
defaultValuestring–Starting value.
requiredbooleantrueMarks the field required.
disabledboolean–Disables the field.
errorstring–An error from the server, shown in place of the hint until the value changes.
classNamestring–Extra classes on the outer Field.

More form messages

All 7
form-message-02 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans