is-interactive-element
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

isInteractiveElement

build Version on npm

isInteractiveElement checks if a DOM element is an interactive element or not.

Installation

isInteractiveElement can be installed using npm:

$ npm install [--save] is-interactive-element

Example usage

if (isInteractiveElement(document.createElement('button'))) {
    // do something you should only do with interactive elements
}

Readme

Keywords

Package Sidebar

Install

npm i is-interactive-element

Weekly Downloads

10

Version

2.0.1

License

MIT

Unpacked Size

5.65 kB

Total Files

9

Last publish

Collaborators

  • matijs