Skip to main content

UseTourOptions

Options for useTour.

This is an interface exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import type { UseTourOptions } from "@mapcairn/map";

interface UseTourOptions

Properties​

offer​

readonly offer: boolean;

Whether to show the welcome card on this page load (shouldOfferTour).

snapshot​

readonly snapshot: TourSnapshot;

The app state now, which decides when a step is done.

steps​

readonly steps: readonly TourStep[];

The steps to take, in order.

version​

readonly version: number;

The host's tour version, stored in Settings.tourSeen once answered.

See also​

Source: packages/map/src/tools/Tour/useTour.ts:37