Ir al contenido

co-modal

Ver código
<co-modal heading="Título de ejemplo"></co-modal>

Props

PropAtributoTipoDefaultDescripción
closableclosablebooleantrueShow close (X) button in header
closeOnOverlayclose-on-overlaybooleantrueClose when clicking the overlay backdrop
descriptiondescriptionstring | undefinedSubtitle / description
headingheadingstring''Modal title
openopenbooleanfalseWhether the modal is visible

Eventos

EventoDetailBubblesCancelableDescripción
coClosevoidEmitted when the modal requests to close

Slots

SlotDescripción
(default)Modal body content
footerFooter with action buttons

CSS Parts

PartDescripción
::part(body)
::part(footer)
::part(header)
::part(modal)

CSS Custom Properties

Este componente no expone CSS custom properties.