1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
# React Popper
[](https://github.com/popperjs/react-popper/actions?query=workflow%3A%22Unit+Tests%22)
[](https://www.npmjs.com/package/react-popper)
[](https://www.npmjs.com/package/react-popper)
[](https://david-dm.org/souporserious/react-popper)
[](https://github.com/prettier/prettier)
[](https://spectrum.chat/popper-js/react-popper)
React wrapper around [Popper](https://popper.js.org).
**important note:** Popper is **not** a tooltip library, it's a _positioning
engine_ to be used to build features such as (but not restricted to) tooltips.
## Install
Via package managers:
```bash
# With npm
npm i react-popper @popperjs/core
# With Yarn
yarn add react-popper @popperjs/core
```
**Note:** `@popperjs/core` must be installed in your project in order for
`react-popper` to work.
Via `script` tag (UMD library exposed as `ReactPopper`):
```html
<script src="https://unpkg.com/react-popper/dist/index.umd.js"></script>
```
## Documentation
The full documentation can be found on the official Popper website:
http://popper.js.org/react-popper
## Running Locally
#### clone repo
`git clone git@github.com:popperjs/react-popper.git`
#### move into folder
`cd ~/react-popper`
#### install dependencies
`npm install` or `yarn`
#### run dev mode
`npm run demo:dev` or `yarn demo:dev`
#### open your browser and visit:
`http://localhost:1234/`
|