
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-positioner
Advanced tools
A small utility component that positions a container relative to a root.
Example Usage:
import Positioner from "react-positioner";
function Tooltip({ position, content, children, ...rest }) {
return (
<Positione {...rest}
content={
<span className={`tooltip tooltip--${position}`}>
{content}
</span>
}
isShown={visible}
position={position}>
{children}
</Positioner>
)
}
| Prop | Type | Required | Default Value | Description |
|---|---|---|---|---|
| position | "top" | "left" | "right" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | Yes | The position of the container relative to the target element | |
| targetOffset | number | No | The distance from the target element in pixels. | |
| bodyOffset | number | No | Distance from the edge of the screen. | |
| isShown | boolean | Yes | Tell the positioner if the element is shown or not. Great when you want to use with a tooltip or some other, popup container. | |
| children | React.Node | Yes | The target element of the positioned container | |
| content | React.Node | Yes | The content inside the positioned container |
FAQs
Position an element next to a target.
The npm package react-positioner receives a total of 27 weekly downloads. As such, react-positioner popularity was classified as not popular.
We found that react-positioner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.