vue-sonner icon indicating copy to clipboard operation
vue-sonner copied to clipboard

custom component - option to keep style

Open andrei4002 opened this issue 1 year ago • 1 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 avatar Jan 29 '24 16:01 andrei4002

@andrei4002 check docs and search for Headless and Custom with props

sadeghbarati avatar Mar 01 '24 16:03 sadeghbarati