svelte-french-toast icon indicating copy to clipboard operation
svelte-french-toast copied to clipboard

Are there any alternatives to dismiss notification for custom toasts?

Open ksenia-fe opened this issue 1 year ago • 0 comments

Hi! I have a question about dismissing the notification. You have an example of 'Rich content' toast: <span> Custom and <b>bold</b> <button on:click={() => toast_.dismiss(toast.id)}>Dismiss</button> </span> and advice to use toast such this: toast(RichContent). But can I use RichContent component with my custom message property like this: toast(<RichContent message="This is test notification"/>)? Or are there any alternatives to have dismiss button (e.g. dismiss property in options object: true with default Icon like toast.error(message, { style: ..., position: ...., **dismiss: true,** });) Thank you in advance

ksenia-fe avatar Mar 06 '23 17:03 ksenia-fe