emilkowalski / sonner

An opinionated toast component for React.

Home Page:https://sonner.emilkowal.ski

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request]: Add option to choose swipe dismiss direction

rochasamuel opened this issue · comments

Today we have swipe dismiss in vertical direction. Would be nice to add one property to chose the swipe to dismiss action direction like 'vertical', 'horizontal' and other option to allow the both directions.

It has only vertical swipe direction, because I wanted it to have spacial consistency I described here. It could be unintuitive for the users to swipe horizontally when the toast comes from the bottom. Considering this toast library is opinionated, I'd like to keep it the way it is. Thank you for the suggestion tho!

Hey @emilkowalski , thanks for this super library !

Do you really not want to reconsider this ? You could just let the default the way it is today but still allow one to customize the direction at will ? I feel like the swiping bot thing to dismiss is pretty counter-intuitive. Wdyt ?