Closed shashank6341 closed 1 month ago
@shashank6341 is attempting to deploy a commit to the SyntaxUI Team on Vercel.
A member of the Team first needs to authorize it.
@epoll31 since you have rewritten the the code for framer motion into tailwind css, can you review this PR too.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
syntax-ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 31, 2024 4:15am |
@Ansub @shashank6341
So I was looking through the PR and it looks pretty good overall. I didn't love the use of the showIcon
state variable.
I feel like it makes the animation very choppy when it doesn't need that. I made some edits that eliminated that variable.
I also changed how the icon transitions from Check
to X
where instead of only rendering one or the other, we always render both with opposite values in opacity. Animating between these looks much smoother now.
I wasn't able to make changes on this branch directly, so I opened up a new PR from my branch to this PR's branch
Hi @epoll31 @Ansub.
I agree to the feedback, I have merged the changes from @epoll31 and is now reflecting in this PR.
Congratulations @shashank6341 you can ping me on discord to get the contributor badge ✨
Description
Removed the Framer Motion dependency from the Icon Toggle Component .
Related Issue
Fixes #201
Proposed Changes
src/showcase/components/toggle/IconToggle.tsx
cn
function for code preview visibility.src/app/(docs)/components/toggle/icon-toggle/page.mdx
usingFramer
prop from Component Preview.usingCn
prop in Component Preview.Screenshots
Checklist
Please check the boxes that apply:
main
branch.npm run build
and build is successful