Skip to content

Commit 859e969

Browse files
committed
Fix more examples
1 parent 95a380d commit 859e969

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/components/Toast.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ Toasts can be displayed as variants thru various helper methods or be set in `To
137137
<ClientOnly>
138138

139139
<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';
142142

143143

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'})};
146146

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'})};
151151
</script>
152152

153153
</ClientOnly>

0 commit comments

Comments
 (0)