@jswork/is-overflowed
v1.0.3
Published
Detect element text overflowed.
Downloads
6
Maintainers
Readme
is-overflowed
Detect element text overflowed.
installation
npm install @jswork/is-overflowed
usage
import isOverflowed from '@jswork/is-overflowed';
const el = document.getElementById('my-element');
const isOverflowed = isOverflowed(el);
console.log(isOverflowed); // true or false
types
/// <reference types="@jswork/is-overflowed/global.d.ts" />
license
Code released under the MIT license.