onlook-dev / onlook

The open source, local-first Figma for React. Design directly in your live React app and publish your changes to code.
https://onlook.dev
Apache License 2.0
3.75k stars 233 forks source link

[feat] Right-Click to "View Element Code" should persist as an option #759

Open drfarrell opened 2 weeks ago

drfarrell commented 2 weeks ago

"View Element Code" should persist at the top of the right click menu. Right now it only appears if Onlook is detected on the project, which sometimes takes a few seconds.

If it's not enabled, it should be grayed-out. Ideally there's a loading spinner in-place of the icon, but it's jarring to a user when they can't select it or don't know where it is.

image