ericclemmons / ericclemmons/click-to-component
Add support for a custom onClick for ClickToComponent
Open
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
1. Support `click-to-component` in web environments like Replit
2. Add custom logic to run before editor is opened
**Describe the solution you'd like**
Make `` accept an `onClick` callback that would get the element, component, file path, etc. as arguments.
**Describe alternatives you've considered**
Intercepting navigation events or patching `window.open`: both seem fragile and miss information about the target HTMLElement.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.