Implementation 1: Alert + Status components

This implementation registers two separate components, Alert and Status, with role alert and status respectively

Clicking the dismiss button removes the element from the DOM

By default, these elements are statically positioned by default. Their positions can be changed using shadow parts

Press the add alert button and see what happens

Note: Use a screen reader to distinguish the behaviour between the two elements.