Closed epoll31 closed 4 months ago
@epoll31 is attempting to deploy a commit to the SyntaxUI Team on Vercel.
A member of the Team first needs to authorize it.
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 22, 2024 10:36am |
can we use something like this instead of adding a cn helper function?
function classNames(...classes) {
return classes.filter(Boolean).join(' ')
}
you can use it like this:
className={classNames(
tier.mostPopular ? 'lg:z-10 lg:rounded-b-none' : 'lg:mt-8',
tierIdx === tiers.length - 1 ? 'lg:rounded-l-none' : '',
'flex flex-col justify-between rounded-3xl bg-white p-8 ring-1 ring-gray-200 xl:p-10'
)}
can we use something like this instead of adding a cn helper function?
Done :)
Description
I removed the Framer Motion dependency from the Simple Toggle Component
Related Issue
Fixes #200
Proposed Changes
src/showcase/components/toggle/SimpleToggle.tsx
cn
function to the file so that it is visible in the code previewsrc/app/(docs)/components/toggle/simple-toggle/page.mdx
usingFramer
tag from docs pageScreenshots
If applicable, please include screenshots or GIFs to demonstrate the changes made.
Checklist
Please check the boxes that apply:
main
branch.npm run build
and build is successful