
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@enymo/react-clickable
Advanced tools
Simple React Component providing a unified API for working with Buttons and Anchors.
Simple React Component providing a unified API for working with Buttons and Anchors.
The library may be installed from npm using
npm i @enymo/react-clickable
The component supports the following props:
| Prop | Description |
|---|---|
| className | Additional class(es) for the component. Note that a disabled Clickable will always gain the disabled class in addition to those specified with this prop. |
| style | A custom style may be specified for the component |
| to | The target when using the Clickable as a hyperlink. Passing this prop will cause the Clickable to render a <Link> or <a> tag, even if onClick is specified as well. |
| linkType | May be normal or new-tab. Default is normal. new-tab will open the link in a new tab. |
| disabled | Disables the clickable. A button will be set to disabled via prop. Since <a> tags cannot be disabled without some rather sketchy meddling with event propagation, the clickable will render a <div> instead of an Anchor in this case. The disabled class will be added regardless of type. |
| submit | If the clickable renders a button, this prop sets the button type from 'button' to 'submit'. Otherwise, this prop has no effect. |
FAQs
Simple React Component providing a unified API for working with Buttons and Anchors.
We found that @enymo/react-clickable demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.