react-popper
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@popperjs/core | 2.11.8 | 378.93 kB | MIT | prod peer | |
react-dom | 18.2.0 | 1.04 MB | MIT | prod peer | |
react-fast-compare | 3.2.2 | 6.05 kB | MIT | prod | |
react | 18.2.0 | 79.25 kB | MIT | prod peer | |
warning | 4.0.3 | 3.66 kB | MIT | prod |
React-Popper is a wrapper for the Popper.js library specifically designed for React projects. Popper is not a tooltip library, but a positioning engine that developers can use to build features such as tooltips. This wrapper is perfect for those looking to position or align certain elements on a webpage in response to other elements, commonly used for creating pop-ups, drop-down menus, and more sophisticated positioning use-cases.
To use react-popper, you need to install it and its core dependency in your project using a package manager like npm or Yarn. Here's how you can do it:
Using npm:
npm i react-popper @popperjs/core
Or using Yarn:
yarn add react-popper @popperjs/core
React-Popper can also be included in your project using a script
tag:
<script src="https://unpkg.com/react-popper/dist/index.umd.js"></script>
After the installation, you can simply import react-popper into your component file and use it as required.
The full documentation for React-Popper is available on the official Popper website at http://popper.js.org/react-popper. The comprehensive documentation guides you through all the functionalities and use-cases of React-Popper, providing you with everything you need to know about this powerful positioning engine. Whether you are just starting out or looking for advanced features, the documentation has got you covered.