diff --git a/apps/docs/src/content/guides/api.mdx b/apps/docs/src/content/guides/api.mdx index 41dfb18..160fd33 100644 --- a/apps/docs/src/content/guides/api.mdx +++ b/apps/docs/src/content/guides/api.mdx @@ -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([ /* ... */ diff --git a/apps/docs/src/content/guides/configuration.mdx b/apps/docs/src/content/guides/configuration.mdx index 482f292..3a6ab79 100644 --- a/apps/docs/src/content/guides/configuration.mdx +++ b/apps/docs/src/content/guides/configuration.mdx @@ -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) diff --git a/apps/docs/src/content/guides/hints.mdx b/apps/docs/src/content/guides/hints.mdx index 8cc2322..4f98e70 100644 --- a/apps/docs/src/content/guides/hints.mdx +++ b/apps/docs/src/content/guides/hints.mdx @@ -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