Allow description
property of toasts to be anything instead of string
#1697
AlphaNecron
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
You already can do a lot of things: const [Toaster, toast] = createToaster({
placement: 'top-end',
duration: 200000,
render(toast) {
if (toast.type === 'success') {
return (
<div>
<SuccessIcon />
{/* what ever you want */}
{toast.title}
<form>
<input />
</form>
</div>
)
}
return (
<Toast.Root>
<Toast.Title>{toast.title}</Toast.Title>
<Toast.Description>{toast.description}</Toast.Description>
<Toast.CloseTrigger>Close</Toast.CloseTrigger>
</Toast.Root>
)
},
}) If you have sometihng elsen in mind please provide your API in mind and gives some examples what you're trying to achieve |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This allows further customization of toast content such as icons, interactive toasts, etc...
Beta Was this translation helpful? Give feedback.
All reactions