ibelick / motion-primitives

A collection of open-source, customizable motion components built on top of Framer Motion.
https://motion-primitives.com
MIT License
2.96k stars 95 forks source link

Feature Request: Add Separate Tabs for JavaScript (JS) and TypeScript (TS) Code with Copy Button Functionality #11

Closed DeepakKumarKhatri closed 2 months ago

DeepakKumarKhatri commented 2 months ago

Description:

Currently, when users navigate to the code tab of the component, only TypeScript (TS) code is available. This poses a challenge for developers working with JavaScript (JS) projects, as they need to manually convert the TS code to JS, which can be time-consuming and error-prone.

Proposed Solution:

To improve the usability and accessibility of the component for a broader range of developers, I propose the following improvements:

1. Separate Tabs for JS and TS:

2. Copy Button Functionality:

ibelick commented 2 months ago

Thank you for the suggestion! Motion-Primitives is intentionally TypeScript focused for specific technical reasons, but I’ll consider providing some guidance for JS users in the documentation.