Add missing hint offset in docs

This commit is contained in:
Kamran Ahmed
2026-07-18 17:01:04 +01:00
parent 4863b6b50e
commit 010fb13fe0
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -106,6 +106,7 @@ productHints.open("export"); // Open a hint's popover
productHints.close(); // Close the open popover, keeping its beacon
productHints.dismiss("export"); // Remove the hint's beacon and fire onDismiss
productHints.restore("export"); // Bring a dismissed hint back
productHints.restoreAll(); // Bring every dismissed hint back
productHints.setHints([
/* ... */
@@ -443,6 +443,11 @@ type DriverHint = {
side?: "top" | "right" | "bottom" | "left";
// Position along that edge. (default: "end")
align?: "start" | "center" | "end";
// Nudge the beacon in pixels from its anchor point.
// Positive moves right/down, negative left/up.
// (default: 0)
offsetX?: number;
offsetY?: number;
// Whether the beacon pulses. The pulse also pauses
// automatically for users who prefer reduced
// motion. (default: true)
+1 -1
View File
@@ -1,5 +1,5 @@
---
title: "Hints"
title: "Feature Hints"
description: "Add pulsing hint beacons to your UI with Driver.js. Users click a beacon to open a popover explaining the feature. No tour, no overlay, and the page stays fully interactive."
groupTitle: "Examples"
sort: 6