When initializing a TourGuideClient, you can provide a TourGuideOptions object to customize the behavior, appearance, and navigation of the tour.
Key configuration categories include:
Scrolling Behavior
autoScroll: Enable/disable automatic scrolling to elements.autoScrollSmooth: Enable smooth scrolling transitions.autoScrollOffset: The pixel offset from the edge of the viewport for smooth scrolling.
Backdrop & Highlighting
backdropColor: The color of the backdrop (supports RGBA only).backdropClass: CSS transition classes for the backdrop.backdropAnimate: Whether to animate the backdrop's position and size.targetPadding: The amount of space (in pixels) to leave around the highlighted target element.
Dialog Appearance & Layout
dialogClass: CSS class applied to the tour dialog.dialogZ: The z-index of the dialog.dialogWidth / dialogMaxWidth: Width and max-width style properties (recommended if your content includes images).dialogAnimate: Whether to animate the dialog's position and size.dialogPlacement: The placement of the dialog (uses Side or AlignedPlacement from @floating-ui/core).allowDialogOverlap: If true, allows the dialog to overlap the target element.
Navigation & Buttons
nextLabel, prevLabel, finishLabel: Custom text for the navigation buttons.hideNext, hidePrev: Boolean flags to hide specific buttons.showButtons: Toggle visibility of next/prev buttons.showStepDots: Toggle visibility of progress dots.stepDotsPlacement: Position the dots in either the `
const options: TourGuideOptions = {
autoScroll: true,
autoScrollSmooth: true,
backdropColor: 'rgba(0, 0, 0, 0.5)',
dialogWidth: 400,
nextLabel: 'Continue',
steps: [] // Array of TourGuideStep
};