Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
/ react-popper Public archive

🍿⚛Official React library to use Popper, the positioning library

License

Notifications You must be signed in to change notification settings

floating-ui/react-popper

Folders and files

NameName
Last commit message
Last commit date
Apr 23, 2022
Mar 25, 2021
Apr 9, 2020
May 8, 2024
Oct 6, 2020
Apr 10, 2020
Apr 4, 2018
Apr 21, 2020
Mar 25, 2021
Apr 4, 2018
Apr 5, 2018
Mar 25, 2021
Mar 19, 2018
Nov 8, 2018
May 3, 2022
Mar 25, 2021
Apr 28, 2022
Apr 13, 2022
Apr 23, 2022

Repository files navigation

React Popper

Unit Tests npm version npm downloads Dependency Status code style: prettier Get support or discuss

React wrapper around Popper.


⚠️ This library is in maintenance mode!

This library wraps @popperjs/core, not @floating-ui/dom.

To use the new Floating UI package with React, instead visit https://floating-ui.com/docs/react-dom.


Install

Via package managers:

# 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):

<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/