RE

React Popper

react-popper

Official library to use Popper on React projects

Component Libraries
react
react-popper
popperjs
component
drop
tooltip
popover
Component Libraries
javascript
npm
Stars
2.5k
Weekly
4.7M
Open issues
39
Bundle
~25 kB

Installation

npm install react-popper

Code example

import { Button } from "react-popper";

export function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline">Secondary</Button>
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by Travis Arnold
  • 4.7M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 39 open issues on GitHub

FAQs

Alternatives & similar libraries