Replies: 1 comment
-
onError: (error: Error) => {
const toastMSG = ({ closeToast, toastProps }) => (
<Alert className="my-4" color="failure" title={error.name} icon={MdError} onDismiss={closeToast}>
<span className="font-medium">Fehler</span> {error.message}
</Alert>
)
const notify = () => toast(toastMSG,{
position: 'bottom-center'
})
notify()
} <ToastContainer autoClose={8000} /> But I can't close the alert |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using Flowbite right now, I'd like to remain "in style".
Is it possible to use a custom element for toasts?
Sorry if the answer is obvious. I haven't tried it yet.
Beta Was this translation helpful? Give feedback.
All reactions