Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code preview #5

Open
afrieirham opened this issue Oct 19, 2024 · 4 comments · May be fixed by #67
Open

code preview #5

afrieirham opened this issue Oct 19, 2024 · 4 comments · May be fixed by #67

Comments

@afrieirham
Copy link

When I copy the code, it includes the imports and the creation of the components.
Sometimes I just want to copy the JSX, having a section where I can view the code would be a great addition to this.

Something like this 👇

Screen.Recording.2024-10-20.at.12.24.23.AM.mov

ps - i'm willing to do the implementation if you are okay with the suggestion.

@davidepacilio
Copy link
Collaborator

Great suggestion, @afrieirham! Thanks so much for sharing it with us. We’re still in the exploration phase, so things may shift around a bit as we go, but if you’d like to show us a preview of the implementation, we’d love to check it out.

@baginski11
Copy link

baginski11 commented Oct 28, 2024

How about a dropdown menu with a selection of:

  • Copy Import
  • Copy Component Code

Also I think a naming convention should be created, because identifying the components over a number may be a little bit confusing

@downright-development
Copy link

I would just recommend following the standards of ShadCN when it lays out components & code.

@Hat52
Copy link

Hat52 commented Nov 14, 2024

I agree with downright, I think instead of creating two different section for code we should stick with the only one.

@MendyLanda MendyLanda linked a pull request Nov 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants