-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support v-html in Toasts #3226
Comments
I don't think this will be implemented. Notifications should be simple for easy reading, why you need to show HTML? Can you show example from other UI libraries which support that? |
Agreed I cannot find examples, however sometimes an |
I personally won't add em or b tag in notifications, but maybe someone may need it. |
Fair enough, we have opted for an alert instead and will note the button approach for toasts! |
You will now be able to pass a VNode to import { ULink } from '#components'
toast.add({
description: h(ULink, {
href: 'https://github.com/benjamincanac',
target: '_blank'
}, () => h('span', { class: 'font-bold' }, 'benjamincanac'))
}) I also noticed the toast.add({
"onUpdate:open": () => {
},
onPause: () => {
},
onResume: () => {
},
onSwipeMove: () => {
}
...
}) |
@benjamincanac thank you so much for your help and solution. Love what you guys are doing!! |
Description
At the moment if we are using a backend and we have HTML markup returned for a toast it is rendered as plaintext. Is there a way for us to use the slot to render raw HTML?
Any help or guidance would be fantastic.
The text was updated successfully, but these errors were encountered: