Skip to content

Render just html string

global

import App from './App.vue';
import { createApp } from 'vue';
import Vue3Toasity from 'vue3-toastify';
import 'vue3-toastify/dist/index.css';

createApp(App).use(
Vue3Toasity,
{
dangerouslyHTMLString: true,
}, // global options type definition --> ToastContainerOptions
).mount('#app');

with toast option

js
toast('Hello world.\n I am <strong>jack</strong>', {
  dangerouslyHTMLString: true, // can override the global option
});
toast('Hello world.\n I am <strong>jack</strong>', {
  dangerouslyHTMLString: true, // can override the global option
});

Released under the MIT License.