svg-click-handler
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

svgclickhandler

svgclickhandler is a lightweight JavaScript library that makes it easy to handle click events on SVG elements embedded inside <object> tags. It extracts the xlink:href of clickable elements (e.g., <a> tags) and invokes a custom callback with the result.

Installation

Install via NPM:

npm install svgclickhandler

Package Sidebar

Install

npm i svg-click-handler

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.17 kB

Total Files

7

Last publish

Collaborators

  • yosephberhanu