rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

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/tokens

Installs 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

PropTypeDefaultDescription
triggerReactNode-Element that opens the popover.
childrenReactNode-Popover content.