vue-sonner
vue-sonner copied to clipboard
custom component - option to keep style
I have a scenario where i'd like to render a custom vue component, and i do so like this:
toast.message(
markRaw(
defineComponent({
render() {
return h(ChatToast, { message })
},
})
)
)
the problem here is that the component always gets rendered in headless mode. an option to keep the styles would be useful, for cases where you just want to render the inner part of the notification, using a custom component
@andrei4002 check docs and search for Headless
and Custom with props