Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.
/ react-clingy Public archive

🎏 Position an element relative to another element in React.

License

Notifications You must be signed in to change notification settings

jacobbuck/react-clingy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚨 Deprecated

This project is no longer being maintained. I'd recommend using the popular react-popper package instead as it's mature, better tested, and offers more features.

react-clingy

Position elements relative to each other in React.

Example

import Clingy from 'react-clingy';

// Inside a render method
<div ref={(ref) => { this.targetRef = ref; }}>Target</div>
...
<Clingy target={this.targetRef} from="25%-10 top" to="left 75%">
  <div>Element to position</div>
</Clingy>

About

🎏 Position an element relative to another element in React.

Resources

License

Stars

Watchers

Forks

Packages

No packages published