New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@enymo/react-clickable

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enymo/react-clickable

Simple React Component providing a unified API for working with Buttons and Anchors.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
2
Created
Source

React Clickable

Simple React Component providing a unified API for working with Buttons and Anchors.

Installation

The library may be installed from npm using

npm i @enymo/react-clickable

Features

  • Write custom, clickable UI Elements that can be used both as buttons and hyperlinks without additional coding
  • Create cleaner applications that adhere to common guidelines by having it pick the correct html tag for a given situation automatically

Usage

The component supports the following props:

PropDescription
classNameAdditional class(es) for the component. Note that a disabled Clickable will always gain the disabled class in addition to those specified with this prop.
styleA custom style may be specified for the component
toThe 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.
linkTypeMay be normal or new-tab. Default is normal. new-tab will open the link in a new tab.
disabledDisables 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.
submitIf the clickable renders a button, this prop sets the button type from 'button' to 'submit'. Otherwise, this prop has no effect.

FAQs

Package last updated on 12 Feb 2026

Did you know?

Socket

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.

Install

Related posts