You may also consider just a simple dataview with multiple containers or text boxes that could sit inside. You can style them to look similar to your screenshots you provided. The underlying object could have an enum that would indicate, conditionally, which message (container/text box) to display. You could likely then combine that with the microflow timer widget (https://marketplace.mendix.com/link/component/27) to reset the enum and refresh the object, making the message go away.
Just a quick thought, I haven’t tested this or anything. Might be worth a try.
use can try toaster notification from app store