co-modal
This content is not available in your language yet.
Ver código
<co-modal heading="Título de ejemplo"></co-modal> Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|---|---|---|---|
closable | closable | boolean | true | Show close (X) button in header |
closeOnOverlay | close-on-overlay | boolean | true | Close when clicking the overlay backdrop |
description | description | string | undefined | — | Subtitle / description |
heading | heading | string | '' | Modal title |
open | open | boolean | false | Whether the modal is visible |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|---|---|---|---|
coClose | void | ✓ | ✓ | Emitted when the modal requests to close |
Slots
| Slot | Descripción |
|---|---|
(default) | Modal body content |
footer | Footer with action buttons |
CSS Parts
| Part | Descripción |
|---|---|
::part(body) | |
::part(footer) | |
::part(header) | |
::part(modal) |
CSS Custom Properties
Este componente no expone CSS custom properties.