Popper
stableLow-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 popperAPI Reference
Popper.Root / Anchor / Content
Floating positioning primitives.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes merged with the component defaults. | — |