# TourStep

One step of a tour, as data. The host writes the words.

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

## Signature

```ts
import type { TourStep } from "@mapcairn/core";
 
interface TourStep
```

## Properties

### advance

```ts
readonly advance: TourAdvance;
```

What the person does to finish the step.

### heading

```ts
readonly heading: DefinitionText;
```

A message key or plain text, read in the active language where the card and the announcement show it.

### id

```ts
readonly id: string;
```

A stable id, for the host's own wiring. Nothing in the SDK reads it.

### opens

```ts
readonly opens?: SheetSection;
```

Applies only when Map options is opened while this step is current: a step
whose action is inside the sheet puts `opens` on the step that opens it,
not on the step after. The section Map options opens on while the step is current, so the step's
action is in view without a scroll. Basemap when left out.

### side

```ts
readonly side?: "start" | "end";
```

In the panel layout, which side the card sits against. Defaults to start.

### target

```ts
readonly target?: FocusTarget;
```

The registered control to ring while the step is current, if any.

### text

```ts
readonly text: DefinitionText;
```

As `heading`.

## See also

- [`TourAdvance`](https://docs.mapcairn.com/api/core/TourAdvance.md)
- [`DefinitionText`](https://docs.mapcairn.com/api/core/DefinitionText.md)
- [`SheetSection`](https://docs.mapcairn.com/api/core/SheetSection.md)
- [`FocusTarget`](https://docs.mapcairn.com/api/core/FocusTarget.md)

Source: [packages/core/src/tour/tour.ts:35](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/tour/tour.ts#L35)
