Skip to content

A React component that detects when it's overflowed by its content

License

Notifications You must be signed in to change notification settings

appfolio/react-overflow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-overflow

npm version GitHub license

A React component that detects when it's overflowed by its content.

Installation

Install react-overflow using npm:

npm install --save react-overflow

Usage

import { OverflowDetector } from 'react-overflow';

function handleOverflowChange(isOverflowed) {
  console.log(isOverflowed);
}

<OverflowDetector
  onOverflowChange={handleOverflowChange}
  style={{ width: '100px' }}
>
  <div style={{ width: '200px' }}>Overflowing</div>
</OverflowDetector>

License

MIT

About

A React component that detects when it's overflowed by its content

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%