Skip to content
GitHub

Tour

Displays a guided tour of the application.

Installation

Usage

Examples

Step Types

Demonstrate all three step types in a single tour: dialog for welcome/completion, tooltip anchored to elements, and floating for fixed-position content.

Target Element

Progress

Display a visual progress indicator at the bottom of the tour content showing how far along the user is.

Step 1
Step 2
Step 3
Step 4

Skip

Allow users to skip the entire tour at any step by adding a skip action.

Item 1
Item 2
Item 3

Keyboard Navigation

Enable arrow key navigation between tour steps using the keyboardNavigation prop.

Use arrow keys to navigate, Escape to close

Step 1
Step 2
Step 3

Events

Listen to tour lifecycle events like onStepChange and onStatusChange to track user progress.

Step 1
Step 2
Step 3
Event Log:Start the tour to see events

Wait for Click

Use the effect function with waitForEvent to wait for user interaction before proceeding to the next step.

Wait for Input

Create form tutorials that wait for users to enter valid input before advancing.

Wait for Element

Wait for dynamically rendered elements to appear in the DOM before showing a step.

Item 1
Item 2

Async

Load data asynchronously and update step content before displaying it using the effect function with show() and update().

User Profile Card

Custom spacing

Use [--space:--spacing("value")] on <TourContent /> to adjust panel padding (default --spacing(4)).

API Reference

Tour

TourTrigger

TourContent

TourHeader

TourTitle

TourDescription

TourProgressText

TourFooter

TourActions

TourPreviousStep

TourNextStep

TourClose

useTourContext


For a complete list of props, see the Ark UI documentation.