2.0.1 • Published 4 years ago

is-interactive-element v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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
}