Skip to main content

Modal API Overview

Initialization

<script>
import { Modal, Text, Portal } from "@wx/svelte-core";
</script>

<Portal>
<Modal>
<Text />
</Modal>
</Portal>
tip
  • Visit the Features Guide to learn more about the control's functionality.
  • Explore the samples to visualize the available features.
buttonsan array of buttons for a modal box
cancela function which is called on click of the Cancel button
oka function which is called on click of the OK button
titlesets the text of a modal box's header