Skip to content

πŸ’‘ [FEATURE] - Add support for error placement customizationΒ #12

@isonnymichael

Description

@isonnymichael

Summary

Allow customization of where the error message is placed β€” before or after the input element β€” through the options config.

Basic Example

validateForm('my-form', {
  errorPlacement: 'before' // or 'after' (default)
});
  • Option errorPlacement accepted in config
  • Errors appear in the correct DOM position
  • Default behavior remains after
  • Works in all browsers without layout issues

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions