Async steps
How It Works
Basic Example
const tour: TourConfig = {
id: 'form-tour',
steps: [
{
id: 'fill-form',
type: 'async',
page: '/signup',
content: {
pending: {
targetElement: '#email-input',
title: 'Enter Your Email',
content: 'Type your email address and click Submit',
},
processing: {
targetElement: '#submit-button',
title: 'Processing...',
content: 'Validating your email',
},
success: {
targetElement: '#success-message',
title: 'Email Verified!',
content: 'Great! Now you can continue',
},
},
},
],
};Controlling Async Steps
Using Tour Helpers (Recommended)
Manual Event Names
Custom Event Names
Common Use Cases
Waiting for Button Click
Form Submission
Data Loading
Navigation Behavior
Default Event Names
Complete Example
Best Practices
Related Features
Last updated