'Slots vue 3 with bootsrap modal

How i can change button in show modal.

ModalForm component:

<b-modal centered  hide-footer id="my-modal">
 <slot name="save"></slot>
</b-modal>

Component one:

<modal-form>
<template #save>
 Save
</template>
</modal-form>

Component two:

<modal-form>
<template #save>
 Edit
</template>
</modal-form>

If i do this button is save



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source