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: add resizable card component #63

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cesar-brandon
Copy link

This PR introduces the ResizableCard component, allowing dynamic resizing from various positions: top, bottom, left, right, and corner. It uses framer-motion for drag handling and resizing.

Changes:

  • ResizableCard component with resizing support from different positions.
  • Styles for edge and corner handling.
  • Demo with position control buttons.

Copy link

vercel bot commented Oct 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
motion-primitives ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 9:26pm

@ibelick
Copy link
Owner

ibelick commented Oct 11, 2024

Thank you for the PR, @cesar-brandon!
To increase the utility of the component, could we abstract the resizing logic to create a resizable component (similar to the resizable from shadcn-ui shadcn resizable or React Resizable Panels)? Also making it work on mobile would be nice. It would be a really great addition Let me know your thoughts!

@cesar-brandon
Copy link
Author

Hi! Thanks for the review✨✨
I agree, abstracting the resizing logic and making it mobile-friendly would definitely add value. I’m happy to work on that!

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.

2 participants