mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-10-31 03:52:13 +08:00
Add missing hint offset in docs
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user