Components
← All components

Dismissible

stimeo--dismissible

Closes a banner or notice while keeping focus from being orphaned.

The stimeo--dismissible controller removes (or, in hide mode, hides) an element on a close button — or on Escape when closeOnEscape is set. Its accessibility job is focus safety: when focus is inside the element being removed, it is moved first to the fallback target, then the next focusable element, then the previous one, then document.body, so the vanishing close button never strands the user. A dismiss event carries the mode. Behavior only — exit transitions and semantics like role="alert" are owned by the consumer.

running

Your profile was updated.

View profile

Keyboard

KeyAction
Enter / Space Activate the close button (native button).
Escape Dismiss when closeOnEscape is set and focus is inside.