ericclemmons / ericclemmons/click-to-component

Add support for a custom onClick for ClickToComponent

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.