Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 23, 2024 via pnpm

@popperjs/core 2.11.8

Tooltip and Popover Positioning Engine
Package summary
Share
0
issues
1
license
1
MIT
Package created
22 Nov 2019
Version published
26 May 2023
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
@popperjs/core@2.11.8
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of @popperjs/core 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does @popperjs/core do?

@popperjs/core is a JavaScript library that offers a robust solution to handle the positioning of tooltips and popovers in your UI. These elements are difficult to manage as they are meant to "pop out" of the general flow of the document and float near a specific target. This is where Popper steps in by providing an automated and reliable way to place these elements correctly relative to their referred objects.

How do you use @popperjs/core?

You can use @popperjs/core by installing it through npm or Yarn. For npm, you just need to run npm i @popperjs/core in your project's root directory. If you're using Yarn, the command would be yarn add @popperjs/core. Once the package is installed, you can import it into your JavaScript file. Here's an example:

import { createPopper } from '@popperjs/core';

const button = document.querySelector('#button');
const tooltip = document.querySelector('#tooltip');

createPopper(button, tooltip, {
  placement: 'right',
});

In this code snippet, we are creating a popper instance for a button and a tooltip. The createPopper() function is responsible for generating the popper. It takes three arguments: the button (button), the tooltip (tooltip), and an options object where we set the placement of the tooltip to 'right'.

Where are the @popperjs/core docs?

The complete documentation for @popperjs/core can be found on the official website. There are two versions available, version 2.x (latest) and version 1.x. You can find everything from basic information to advanced concepts about the library in these docs. There's also a migration guide available to help you migrate from Popper 1 to Popper 2.