API ReferenceOverview

API Reference

@trailguide/core

Framework-agnostic. No React required.

ExportDescription
TrailguideCore class — create an instance and call .start(), .next(), .prev(), .skip(), .stop()
start(trail, options)Static helper that creates and starts a singleton instance
stop()Stop the singleton
next() / prev() / skip()Control the singleton
tourStoragelocalStorage utilities for tracking completion and progress

@trailguide/runtime

React components and hooks. Includes everything from @trailguide/core.

ExportDescription
<Trailguide>Render component — starts on mount, stops on unmount
useTrailLow-level hook — gives you start, stop, next, prev, skip, goToStep
useTrailManagerHigh-level hook — once, enabled, delay, resumable, and all state
useRegisterTourDrop-in for useTrailManager that also wires into TourRegistryProvider
TourRegistryProviderContext provider for a layout-level help button
useTourRegistryRead startCurrentTour from the nearest TourRegistryProvider
tourStorageRe-exported from @trailguide/core

Quick navigation