Interactive testing environment for react-shared components
Current: Default
A message component for displaying error and warning messages below form inputs
Customize the message properties and see the changes in real-time
This field is required
Different message types for form validation
This field is required
This value might be too long
Invalid email format
Component renders nothing when no messages provided
errorMessagestring - Error message to display (default: '')
warningMessagestring - Warning message to display (default: '')
Priority Logic: If both errorMessage and warningMessage are provided, only the error message will be displayed. This ensures critical validation errors are always visible.
Null Rendering: The component returns null when neither errorMessage nor warningMessage is provided, preventing unnecessary DOM elements.
Icon Display: Error messages include a warning icon for visual emphasis, while warning messages display text only.
Typical Usage: Place this component directly below form inputs to provide contextual feedback about validation state.