Skip to content

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