Components
ErrorMessage

Error Message

The Error Message component provides you with form error messages and validation feedback.

Live Examples

Storybook: components-form-errormessage--default
Storybook: components-form-errormessage--inline
Storybook: components-form-errormessage--form-example

Code Examples

import { ErrorMessage } from '@nostromo/ui-core'
 
export default function ErrorMessageExample() {
  return (
    <div>
      <input type="email" />
      <ErrorMessage>Please enter a valid email address</ErrorMessage>
    </div>
  )
}

Props

PropTypeDefaultDescription
childrenReactNode-Error message content
classNamestring-Additional CSS classes