Ver código
<co-overlay></co-overlay>
Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|
closeOnEscape | close-on-escape | boolean | false | Opt-in: emit `coClose` when Escape is pressed while open.
Default false → existing consumers are unchanged. |
open | open | boolean | false | Whether the overlay is visible |
trapFocus | trap-focus | boolean | false | Opt-in accessible focus trap. When true, opening the overlay records the
previously-focused element, moves focus into the overlay, cycles Tab /
Shift+Tab within the slotted content, and restores focus on close.
Default false → existing consumers are unchanged. |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|
coAfterClose | void | — | ✓ | Slide/fade-out animation finished (overlay fully closed). |
coAfterOpen | void | — | ✓ | Slide/fade-in animation finished (overlay fully open). |
coClose | void | ✓ | ✓ | Emitted when the overlay backdrop is clicked |
Slots
Este componente no expone slots.
CSS Parts
| Part | Descripción |
|---|
::part(overlay) | |
CSS Custom Properties
Este componente no expone CSS custom properties.