1.0.0 • Published 4 years ago

@gelbehexe/svg-no-pointer-events v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

SVG No Breakpoints

It simply disables pointer events for svg tag in html since they are disturbing when catching click away events

Installation

Install the plugin from npm:

# Using npm
npm install @gelbehexe/svg-no-pointer-events

# Using Yarn
yarn add @gelbehexe/svg-no-pointer-events

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  plugins: [
    // ...
    require('@gelbehexe/svg-no-pointer-events'),
    // ...
  ],
}

Generated css

svg {
  pointer-events: none
}