SyntaxUI / syntaxui

Get free access to pre-built, Tailwind CSS-powered components, animations and effects - brought to life using Framer Motion. Just copy, paste and you're ready to go!
https://syntaxui.com
MIT License
806 stars 52 forks source link

fix: Removed Framer Motion from Simple Toggle #201

Closed epoll31 closed 4 months ago

epoll31 commented 4 months ago

Description

I removed the Framer Motion dependency from the Simple Toggle Component

Related Issue

Fixes #200

Proposed Changes

Screenshots

If applicable, please include screenshots or GIFs to demonstrate the changes made.

Checklist

Please check the boxes that apply:

vercel[bot] commented 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.

vercel[bot] commented 4 months ago

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
Ansub commented 4 months ago

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'
              )}
epoll31 commented 4 months ago

can we use something like this instead of adding a cn helper function?

Done :)