# UseTourOptions

Options for [`useTour`](https://docs.mapcairn.com/api/map/useTour-function.md).

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

## Signature

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

## Properties

### offer

```ts
readonly offer: boolean;
```

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

### snapshot

```ts
readonly snapshot: TourSnapshot;
```

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

### steps

```ts
readonly steps: readonly TourStep[];
```

The steps to take, in order.

### version

```ts
readonly version: number;
```

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

## See also

- [`TourSnapshot`](https://docs.mapcairn.com/api/core/TourSnapshot.md)
- [`TourStep`](https://docs.mapcairn.com/api/map/TourStep.md)

Source: [packages/map/src/tools/Tour/useTour.ts:37](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/Tour/useTour.ts#L37)
