Skip to main content

ErrorMessage

  • The ErrorMessage component is designed to display an error message.
  • This will render the error message with default styled.

Props

  1. errorMessage (required):
    • A string representing the error message to be displayed.

Usage Example


function Example(pageContext) {
const { protrakComponents } = React.useContext(customWidgetContext);
const { ErrorMessage } = protrakComponents;

return <ErrorMessage errorMessage="This is an error message!" />;
};