Skip to main content
Neural UIv2.1.0Documentation
View v1

Tour

Guide users through specific controls in an interface.

Category
Overlays
Import
@neural-ui/core/tour
Selector
neu-tour
import { NeuTourComponent } from '@neural-ui/core/tour';

Overview

A tour step points to a real element by ID. Tour highlights that element, scrolls it into view and places the instructions alongside it.

Guide through a project

Start the guide, advance to the second step, then finish. The focus returns to the button that started the tour.

Guide through a project

Atlas project

Project alerts

Get updates when your team makes changes.

Recent activity

See the latest project updates.

Additional test

Configurator

Pick the starting step or edit the title of the first instruction. Start the tour to see the result.

Configurator

Live preview

Atlas project

Project alerts

Get updates when your team makes changes.

Recent activity

See the latest project updates.

template.html
<button neu-button type="button" (click)="open.set(true)">
  Start guide
</button>
<neu-tour
  [steps]="steps()" [index]="index()" [open]="open()"
  (indexChange)="index.set($event)"
  (dismissed)="open.set(false)" (completed)="open.set(false)"
/>

State and events

The application provides the steps, open state and index. Handle dismissal, completion and missing targets according to the screenโ€™s flow.

Accessibility and keyboard

The examples use visible labels and follow the focus order of the live controls.

Key
Action
Tab / Shift + Tab Move focus within the current step.
Enter / Space Activate the focused step action.
Escape Dismiss the guide and return focus to the trigger.

API

Provide ordered targets and content. Bind open and step index to the state owned by your page.

Inputs

Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.

Name
Type
Default
Template binding
Description
indexnumber0[index]Current zero-based step index.
openbooleanfalse[open]Controls whether the tour is open.
stepsreadonly NeuTourStep[]Required[steps]Ordered instructions, each with an existing target element ID.

Outputs

Listen to an event with (event)="handler($event)". The table explains the data your handler receives and how to use it.

Name
Payload
Template binding
Description
completedvoid(completed)="onCompleted($event)"Reports that the user finished the last step.
dismissedvoid(dismissed)="onDismissed($event)"Reports that the user closed the guide.
indexChangenumber(indexChange)="onIndexChange($event)"Requests navigation to another step.
targetMissingstring(targetMissing)="onTargetMissing($event)"Reports the ID that could not be found.

Templates

ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.

This component does not expose content projection or public customization templates.

Public Types

Open a type to inspect its definition and interface fields.

Theming

Use the application theme to keep the panel, buttons and target highlight legible against the screen underneath.

Specific tokens

This component uses shared theme tokens rather than dedicated component hooks.

Shared tokens used

Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.

Token
Purpose here
Other impact
Default / fallback
No data