structyl

Popper

stable

Low-level floating positioning primitive anchored to an element.

Basic usage

Examples

Toggle with anchorEl

Pass open and anchorEl to show/hide positioned content next to an element.

Placement variants

Use placement to control which side the content appears on.

open + anchorEl

Pass open and anchorEl to show positioned content next to an element.

Features

  • open / anchorEl API.
  • Collision-aware placement via floating-ui.

Installation

bash
pnpm dlx structyl add popper

API Reference

Popper.Root / Anchor / Content

Floating positioning primitives.

PropTypeDefault
classNamestring

Additional Tailwind classes merged with the component defaults.

Popper | structyl