ErrorMessage
- The
ErrorMessagecomponent is designed to display an error message. - This will render the error message with default styled.
Props
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!" />;
};