Skip to content
Discussion options

You must be logged in to vote
  1. One key difference between Dialog and AlertDialog is that AlertDialog interrupts the user and require a response. that is why its native behaviour would'nt allow the user to click outside the modal to close the alert, but Dialog could allow closing with no response. basically, AlertDialog behaves closer to alert.
  2. Toast is basically rendering a succinct message that is displayed temporarily. it is a very basic component and works very much as easily expected. Sonner on the other hand, is an opinionated toast component, what it mainly means is that its behavior is very much defined, such as: stacking toasts, animation, hovering over multipule toasts also give you a cool animation effect. y…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@syabro
Comment options

Answer selected by syabro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants