Popover
Click-triggered rich content overlay anchored to a trigger element.
Examples
Basic info
Informational popover that opens on button click.
With form (dimensions)
Popover containing a compact width/height form with an apply action.
Positioned above anchor
Popover appears above the trigger using bottom-full positioning.
With close button
Explicit ✕ close button inside the popover for accessible dismissal.
Installation
pnpm add @rokle/components @rokle/tokensInstalls with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.
Usage
import { Popover } from "@rokle/components";import { Popover } from "@rokle/components";
export function Example() {
return <Popover />;
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| trigger | ReactNode | - | Element that opens the popover. |
| children | ReactNode | - | Popover content. |