formaat-design / reshaped

Community repository for storing examples, reporting issues and tracking roadmap
https://reshaped.so
97 stars 3 forks source link

add ios sheet behavior to bottom sheet modal #201

Closed jackiehluo closed 6 months ago

jackiehluo commented 7 months ago

Is your feature request related to a problem? Please describe. the bottom sheet modal looks like the ios sheet but doesn't have the same interaction pattern (rubber band effect and swipe to close).

Describe the solution you'd like add support for touch interactions on mobile to pull down on the bottom sheet modal to close it (i.e., https://developer.apple.com/design/human-interface-guidelines/sheets#iOS-iPadOS). could be achieved with framer motion or similar (example: https://github.com/Temzasse/react-modal-sheet).

Describe alternatives you've considered n/a

Additional context n/a

blvdmitry commented 6 months ago

Releasing it in the next minor

https://github.com/formaat-design/reshaped/assets/887379/4ea7a330-63d3-454a-b32a-0885160ffe40