xiaoluoboding / vue-sonner

🔔 An opinionated toast component for Vue.

Home Page:https://vue-sonner.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

custom component - option to keep style

andrei4002 opened this issue · comments

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