Skip to content

Modal ​

Use bo-modal for content that needs the user's attention before returning to the page.

Usage ​

<bo-button @click="open = true">Open modal</bo-button>
<bo-modal :open="open" title="Project settings" @close="open = false">
  <img src="/assets/avatar.jpeg" alt="Project preview" />
  <p>Update the project details here.</p>
</bo-modal>

Use the footer slot for modal actions. The component emits close; update open in the parent.

API ​

Prop / event / slotTypeDefaultDescription
id / dataTestIdstringautogeneratedPanel attributes.
openbooleanfalseControls visibility.
titlestring-Generated header title.
sizesm | default | lg | xl | fulldefaultPanel size.
closeOnBackdrop / closeOnEscapebooleantrueClose behavior.
showClose / closeAriaLabelboolean / stringtrue / CloseClose button settings.
role / ariaLabel / ariaLabelledBy / ariaDescribedBynative accessibility typesdialog / -Panel semantics.
closeevent-Emitted when the modal requests closing.
default / header / footerslot-Body, header, and footer content.

Released under the MIT License.