Some days ago our team lead told me they want something like this. I produced one and gave it back.
But I thought I could make a stand alone custom element so that it can be reused a hundred times without writing the entire bulky code.
I published an npm package here: https://www.npmjs.com/package/successful-operation
Here is the docs: