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

Locked prop #142

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Locked prop #142

wants to merge 4 commits into from

Conversation

Jvheaney
Copy link

I have added a locked prop to disable card movement and swiping when true. This helped in my project, so I wanted to contribute in hopes it would help others. Cheers!

To use it, just add locked or locked={true} to your SwipeCards component.

Added a locked prop to the card to prevent card movement and swiping when set true. Pointer events are still passed to the card component.
Added the locked prop to the table of properties.
Added locked prop to the card
Updated to reflect changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant