Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey thanks for the exemple.
Someone knows how to use slot to change modal content in the App.vue?
I’ve successfully completed the tutorial, however, I am brand new to Vue.js. Is this modal global?
How do I re-use this from another component? For example, if i have /component/address.vue how can I implement the modal in that component?
The way this is set up right now, the opacity is the same for both the modal backdrop and the body. Is there a way to set them separately so we can have the transparent back drop while the actual modal popup is full opaque?
I have used this code, but then when I render slot in a parent component, it does not appear. It renders the default one.
<template>
<transition name="modal-fade">
<div style="max-width: 500px; max-height: 500px">
<div class="modal-backdrop">
<div class="modal-container">
<div
class="modal"
role="dialog"
aria-labelledby="modalTitle"
aria-describedby="modalDescription"
>
<header class="modal-header" id="modalTitle">
<slot name="header"> This is the default tile! </slot>
<button
type="button"
class="btn-close"
@click="close"
aria-label="Close modal"
>
x
</button>
</header>
<section class="modal-body" id="modalDescription">
<slot name="body"></slot>
</section>
<footer class="modal-footer">
<slot name="footer"></slot>
<button
type="button"
class="btn-green"
@click="close"
aria-label="Close modal"
>
Close me!
</button>
</footer>
</div>
</div>
</div>
</div>
</transition>
</template>
This is for the main slot component, with component name “scan-message”.
the slot in the parent component
<scan-message v-if="showModal" @close="showModal = false">
<template v-slot:header>
<h3> Hello world</h3>
</template>
<template v-slot:body>
<h3> Say Hi</h3>
</template>
</scan-message>
Please, what could I be doing wrong? Thank you