Popover

Positioned floating panel for menus, forms, and custom UI. `role="dialog"` with focus management.

Overlays & Feedback@sisyphos-ui/popoverView on npmView as Markdown

Preview

tsx

Installation

Install the individual package:

$ pnpm add @sisyphos-ui/popover @sisyphos-ui/core

Or use the umbrella package that bundles everything:

$ pnpm add @sisyphos-ui/ui

Usage

Import the component styles and the component itself:

snippet.tsxtsx
import "@sisyphos-ui/popover/styles.css";
import { Popover } from "@sisyphos-ui/popover";

Hover trigger

`trigger="hover"` shows the popover on hover/focus like a richer tooltip.

tsx

Manual trigger

`trigger="manual"` hands full open/close control to the parent — ideal for form flows and shortcuts.

tsx
Anchor element

Placements

Auto-flipping placement reroutes the popover when it doesn't fit.

tsx

API

Props table is being written. See the package README for the complete API surface.

The full API including refs, ARIA attributes, and HTML passthroughs lives in the package README.

Was this page helpful?
Edit this page on GitHub