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
573 stars 42 forks source link

fix: added `usingCn` flag to `ComponentPreview` #205

Closed epoll31 closed 1 month ago

epoll31 commented 1 month ago

Description

I implemented an optional usingCn prop on ComponentPreview that will show step in how to add the cn function to a project.

Proposed Changes

Screenshots

Screenshot 2024-05-22 at 10 24 03 AM

Checklist

Please check the boxes that apply:

vercel[bot] commented 1 month ago

@epoll31 is attempting to deploy a commit to the SyntaxUI Team on Vercel.

A member of the Team first needs to authorize it.

epoll31 commented 1 month ago
Screenshot 2024-05-22 at 11 45 05 AM

Added steps and now only when usingCn is flagged the preview and code will render together instead of two tabs.

vercel[bot] commented 1 month 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 24, 2024 8:21am