Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: Open Drawer on swipe up #3651

Closed
2 tasks done
rahulkumarsingh73690 opened this issue May 3, 2024 · 3 comments
Closed
2 tasks done

[feat]: Open Drawer on swipe up #3651

rahulkumarsingh73690 opened this issue May 3, 2024 · 3 comments

Comments

@rahulkumarsingh73690
Copy link

Feature description

Open Drawer on swipe up like ios like animation

Affected component/components

Drawer

Additional Context

image

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues and PRs
@marvsman
Copy link

marvsman commented May 14, 2024

I've implemented something like that a while ago.
Check out the snappoint example of the Vaul Package.
Just don't use the drawer as a dialog component and don't allow closing the drawer.

Here is the Snappoint Example: Codebox

@rahulkumarsingh73690
Copy link
Author

@marvsman Thanks for sharing, Is it possible to open drawer on swipe not using @click

@marvsman
Copy link

marvsman commented May 15, 2024

...Is it possible to open drawer on swipe not using @click

Yes, it is! The drawer has build in swipe gestures. If the Drawer is always visible, you can move from one snappoint to the next via swipe gestures!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants