Ir al contenido

co-overlay

Ver código
<co-overlay></co-overlay>

Props

PropAtributoTipoDefaultDescripción
closeOnEscapeclose-on-escapebooleanfalseOpt-in: emit `coClose` when Escape is pressed while open. Default false → existing consumers are unchanged.
openopenbooleanfalseWhether the overlay is visible
trapFocustrap-focusbooleanfalseOpt-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

EventoDetailBubblesCancelableDescripción
coAfterClosevoidSlide/fade-out animation finished (overlay fully closed).
coAfterOpenvoidSlide/fade-in animation finished (overlay fully open).
coClosevoidEmitted when the overlay backdrop is clicked

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(overlay)

CSS Custom Properties

Este componente no expone CSS custom properties.