@@ -137,17 +137,17 @@ Toasts can be displayed as variants thru various helper methods or be set in `To
137
137
<ClientOnly >
138
138
139
139
<script lang =' ts ' setup >
140
- import {ref , computed } from ' vue'
141
- import {useToast } from ' bootstrap-vue-3'
140
+ import {ref , computed } from ' vue' ;
141
+ import {useToast } from ' bootstrap-vue-3' ;
142
142
143
143
144
- let show1 = () => {toast .show ({title: ' example title' })}
145
- let show2 = () => {toast .info ({title: ' example title' , body: " This is a toast" })}
144
+ let show1 = () => {toast .show ({title: ' example title' })};
145
+ let show2 = () => {toast .show ({title: ' example title' , body: " This is a toast" }, {variant : ' info ' })};
146
146
147
- let variantshow1 = () => {toast .danger ({title: ' Item Deleted' }, {pos: ' bottom-center' })}
148
- let variantshow2 = () => {toast .info ({title: ' New Message' , body: " This is a toast" }, {pos: ' bottom-right' })}
149
- let variantshow3 = () => {toast .warning ({title: ' Warning for Item' , body: " Please check list" },{pos: ' bottom-right' })}
150
- let variantshow4 = () => {toast .success ({title: ' Event Created!' , body: " Bootstrap Event" },{pos: ' bottom-right' })}
147
+ let variantshow1 = () => {toast .show ({title: ' Item Deleted' }, {pos: ' bottom-center' , variant : ' danger ' })};
148
+ let variantshow2 = () => {toast .show ({title: ' New Message' , body: " This is a toast" }, {pos: ' bottom-right' , variant : ' info ' })};
149
+ let variantshow3 = () => {toast .show ({title: ' Warning for Item' , body: " Please check list" },{pos: ' bottom-right' , variant : ' warning ' })};
150
+ let variantshow4 = () => {toast .show ({title: ' Event Created!' , body: " Bootstrap Event" },{pos: ' bottom-right' , variant : ' success ' })};
151
151
</script >
152
152
153
153
</ClientOnly >
0 commit comments