rokle

Personality

20
40
70
15

Active brand: Meridian

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

HoverCard

Rich preview card that appears on hover over a trigger element, with delay support.

Examples

Basic

Hover over a link to reveal a detail card.

With avatar

User profile card revealed on hover.

AJ

Rich content

Structured data table inside a hover card.

Sides

Hover card appearing from different sides.

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 { HoverCard } from "@rokle/components";
import { HoverCard } from "@rokle/components";

export function Example() {
  return <HoverCard />;
}

API Reference

PropTypeDefaultDescription
triggerReactNode-Element that triggers the card on hover.
childrenReactNode-Card content.
openDelaynumber200Delay in ms before opening.